Commit afd7db4
committed
[SimpleLoopUnswitch] Fix reversed branch during condition injection
The in-loop successor is only on the left after a potential condition
inversion. As we re-use the old condition as-is, we should also
reuse the old successors as-is.
Fixes llvm#63962.1 parent 7b8130c commit afd7db4
File tree
2 files changed
+3
-3
lines changed- llvm
- lib/Transforms/Scalar
- test/Transforms/SimpleLoopUnswitch
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3061 | 3061 | | |
3062 | 3062 | | |
3063 | 3063 | | |
3064 | | - | |
3065 | 3064 | | |
3066 | 3065 | | |
3067 | 3066 | | |
| |||
3070 | 3069 | | |
3071 | 3070 | | |
3072 | 3071 | | |
3073 | | - | |
| 3072 | + | |
| 3073 | + | |
3074 | 3074 | | |
3075 | 3075 | | |
3076 | 3076 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
| 468 | + | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| |||
0 commit comments