[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 42/48] tcg/optimize: Add more simplifications for orc
From: |
Richard Henderson |
Subject: |
[PATCH 42/48] tcg/optimize: Add more simplifications for orc |
Date: |
Sun, 29 Aug 2021 23:24:45 -0700 |
Two simplifications that were missing from before the split
to fold functions, and are now easy to provide.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/optimize.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tcg/optimize.c b/tcg/optimize.c
index a66ac77c29..6feaf905e7 100644
--- a/tcg/optimize.c
+++ b/tcg/optimize.c
@@ -1554,6 +1554,8 @@ static bool fold_or(OptContext *ctx, TCGOp *op)
static bool fold_orc(OptContext *ctx, TCGOp *op)
{
if (fold_const2(ctx, op) ||
+ fold_xx_to_i(ctx, op, -1) ||
+ fold_xi_to_x(ctx, op, -1) ||
fold_xi_to_not(ctx, op, 0)) {
return true;
}
--
2.25.1
- [PATCH 39/48] tcg/optimize: Expand fold_mulu2_i32 to all 4-arg multiplies, (continued)
- [PATCH 39/48] tcg/optimize: Expand fold_mulu2_i32 to all 4-arg multiplies, Richard Henderson, 2021/08/30
- [PATCH 40/48] tcg/optimize: Expand fold_addsub2_i32 to 64-bit ops, Richard Henderson, 2021/08/30
- [PATCH 41/48] tcg/optimize: Sink commutative operand swapping into fold functions, Richard Henderson, 2021/08/30
- [PATCH 47/48] tcg/optimize: Propagate sign info for bit counting, Richard Henderson, 2021/08/30
- [PATCH 44/48] tcg/optimize: Optimize sign extensions, Richard Henderson, 2021/08/30
- [PATCH 45/48] tcg/optimize: Propagate sign info for logical operations, Richard Henderson, 2021/08/30
- [PATCH 43/48] tcg/optimize: Stop forcing z_mask to "garbage" for 32-bit values, Richard Henderson, 2021/08/30
- [PATCH 46/48] tcg/optimize: Propagate sign info for setcond, Richard Henderson, 2021/08/30
- [PATCH 42/48] tcg/optimize: Add more simplifications for orc,
Richard Henderson <=
- [PATCH 48/48] tcg/optimize: Propagate sign info for shifting, Richard Henderson, 2021/08/30
- Re: [PATCH 00/48] tcg: optimize redundant sign extensions, Philippe Mathieu-Daudé, 2021/08/30