Commit 23d27d5
authored
[RISCV] Don't merge pseudo selects with stack adjustment instrs in between (#160105)
When we have sequence of select pseudo instructions with stack adjustment
instructions in between, we shouldn't apply the optimization, proposed by link
https://reviews.llvm.org/D59355. If optimization is applied,
function won't be marked `adjustsStack` during Finalize ISel pass.1 parent 8cb03a0 commit 23d27d5
File tree
2 files changed
+70
-2
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV
2 files changed
+70
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22274 | 22274 | | |
22275 | 22275 | | |
22276 | 22276 | | |
| 22277 | + | |
22277 | 22278 | | |
22278 | 22279 | | |
22279 | 22280 | | |
| |||
22302 | 22303 | | |
22303 | 22304 | | |
22304 | 22305 | | |
| 22306 | + | |
| 22307 | + | |
22305 | 22308 | | |
22306 | 22309 | | |
22307 | 22310 | | |
| |||
22321 | 22324 | | |
22322 | 22325 | | |
22323 | 22326 | | |
22324 | | - | |
| 22327 | + | |
| 22328 | + | |
| 22329 | + | |
22325 | 22330 | | |
22326 | 22331 | | |
22327 | 22332 | | |
22328 | 22333 | | |
22329 | 22334 | | |
22330 | 22335 | | |
22331 | 22336 | | |
22332 | | - | |
22333 | 22337 | | |
22334 | 22338 | | |
22335 | 22339 | | |
| |||
Lines changed: 64 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
0 commit comments