[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 43/51] tcg/optimize: Use fold_xx_to_i for orc
From: |
Richard Henderson |
Subject: |
[PATCH v4 43/51] tcg/optimize: Use fold_xx_to_i for orc |
Date: |
Tue, 26 Oct 2021 16:09:35 -0700 |
Recognize the constant function for or-compliment.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/optimize.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tcg/optimize.c b/tcg/optimize.c
index 3207817b68..bea82305db 100644
--- a/tcg/optimize.c
+++ b/tcg/optimize.c
@@ -1585,6 +1585,7 @@ 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_ix_to_not(ctx, op, 0)) {
return true;
--
2.25.1
- RE: [PATCH v4 44/51] tcg/optimize: Use fold_xi_to_x for mul, (continued)
- [PATCH v4 46/51] tcg/optimize: Use fold_xx_to_i for rem, Richard Henderson, 2021/10/26
- [PATCH v4 47/51] tcg/optimize: Optimize sign extensions, Richard Henderson, 2021/10/26
- [PATCH v4 50/51] tcg/optimize: Propagate sign info for bit counting, Richard Henderson, 2021/10/26
- [PATCH v4 42/51] tcg/optimize: Stop forcing z_mask to "garbage" for 32-bit values, Richard Henderson, 2021/10/26
- [PATCH v4 43/51] tcg/optimize: Use fold_xx_to_i for orc,
Richard Henderson <=
- [PATCH v4 49/51] tcg/optimize: Propagate sign info for setcond, Richard Henderson, 2021/10/26
- [PATCH v4 45/51] tcg/optimize: Use fold_xi_to_x for div, Richard Henderson, 2021/10/26
- [PATCH v4 48/51] tcg/optimize: Propagate sign info for logical operations, Richard Henderson, 2021/10/26
- [PATCH v4 51/51] tcg/optimize: Propagate sign info for shifting, Richard Henderson, 2021/10/26