Commit b76c85b
committed
TargetLowering: fix an infinite DAG combine in SimplifySETCC
TargetLowering::SimplifySetCC wants to swap the operands of a SETCC to
canonicalize the constant to the RHS. The bug here was that it did so whether
or not the RHS was already a constant, leading to an infinite loop.
rdar://111847838
Differential revision: https://reviews.llvm.org/D1550951 parent f03dbdb commit b76c85b
2 files changed
Lines changed: 35 additions & 2 deletions
File tree
- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/AArch64
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4227 | 4227 | | |
4228 | 4228 | | |
4229 | 4229 | | |
4230 | | - | |
| 4230 | + | |
4231 | 4231 | | |
4232 | 4232 | | |
4233 | 4233 | | |
4234 | 4234 | | |
4235 | | - | |
| 4235 | + | |
4236 | 4236 | | |
4237 | 4237 | | |
4238 | 4238 | | |
| |||
| 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 | + | |
0 commit comments