[llvm] [DAGCombiner] Freeze maybe poison operands when folding select to logic (PR #84924)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 14 02:29:42 PDT 2024


dtcxzyw wrote:

Hi @bjope, could you please add the following test for #85190?
```
define i1 @pr85190(i64 %a) {
  %or = or i64 %a, 7
  %cmp1 = icmp slt i64 %a, 0
  %sub = sub nsw i64 -9223372036854775808, %or
  %cmp2 = icmp sgt i64 %sub, %a
  %res = select i1 %cmp1, i1 %cmp2, i1 false
  ret i1 %res
}
```


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


More information about the llvm-commits mailing list