[llvm] [InstCombine] Fix fail to fold (A >> C1) Pred C2 if shr is used multple times #83430 (PR #83563)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 15 04:12:49 PDT 2024


SahilPatidar wrote:

@dtcxzyw, I was experimenting with SPF code and added some logic before the `if (TrueVal == CmpLHS && FalseVal == CmpRHS)` statement. but it didn't work because of this:
```llvm
(lldb) expr SI->getCondition()->dump()
 %switch.i = xor i1 %cmp4.i, true
```

https://github.com/llvm/llvm-project/pull/83563


More information about the llvm-commits mailing list