[all-commits] [llvm/llvm-project] b76854: Revert "[InstCombine] Simplify select operand base...
Benjamin Kramer via All-commits
all-commits at lists.llvm.org
Tue Sep 15 03:26:24 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b768546fe0cc1d320857a6e080d4c796efb0c00c
https://github.com/llvm/llvm-project/commit/b768546fe0cc1d320857a6e080d4c796efb0c00c
Author: Benjamin Kramer <benny.kra at googlemail.com>
Date: 2020-09-15 (Tue, 15 Sep 2020)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
M llvm/test/Transforms/InstCombine/rem.ll
M llvm/test/Transforms/InstCombine/select-binop-cmp.ll
M llvm/test/Transforms/InstCombine/select.ll
Log Message:
-----------
Revert "[InstCombine] Simplify select operand based on equality condition"
This reverts commit cfff88c03cf9e9b72906a41fd11e06721d54f293. Sends
instcombine into an infinite loop.
```
define i1 @foo(i32 %arg, i32 %arg1) {
bb:
%tmp = udiv i32 %arg, %arg1
%tmp2 = mul nsw i32 %tmp, %arg1
%tmp3 = icmp eq i32 %tmp2, %arg
%tmp4 = select i1 %tmp3, i32 %tmp, i32 undef
%tmp5 = icmp sgt i32 %tmp4, 255
ret i1 %tmp5
}
```
More information about the All-commits
mailing list