Commit a46ac7e
committed
[RISCV] Allow non-canonicalized splats in isProfitableToSinkOperands
This isn't an optimization change - IR transforms should have remove
the operands and replaced them with poison. However, I noticed the
non-canonical splat structure in a couple of llvm-reduce outputs.
This results in us creating extremely atypical IR which is quite
misleading about the true cause of what's going on. (Because the
non-canoncal splat doesn't get sunk, we then prone whatever was
actually holding it outside the loop in the original example,
eliminating insight as to the true cause of whatever issue we're
debugging.)1 parent 6ca835b commit a46ac7e
File tree
2 files changed
+38
-2
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
2 files changed
+38
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3139 | 3139 | | |
3140 | 3140 | | |
3141 | 3141 | | |
3142 | | - | |
3143 | | - | |
| 3142 | + | |
| 3143 | + | |
3144 | 3144 | | |
3145 | 3145 | | |
3146 | 3146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6018 | 6018 | | |
6019 | 6019 | | |
6020 | 6020 | | |
| 6021 | + | |
| 6022 | + | |
| 6023 | + | |
| 6024 | + | |
| 6025 | + | |
| 6026 | + | |
| 6027 | + | |
| 6028 | + | |
| 6029 | + | |
| 6030 | + | |
| 6031 | + | |
| 6032 | + | |
| 6033 | + | |
| 6034 | + | |
| 6035 | + | |
| 6036 | + | |
| 6037 | + | |
| 6038 | + | |
| 6039 | + | |
| 6040 | + | |
| 6041 | + | |
| 6042 | + | |
| 6043 | + | |
| 6044 | + | |
| 6045 | + | |
| 6046 | + | |
| 6047 | + | |
| 6048 | + | |
| 6049 | + | |
| 6050 | + | |
| 6051 | + | |
| 6052 | + | |
| 6053 | + | |
| 6054 | + | |
| 6055 | + | |
| 6056 | + | |
0 commit comments