[llvm-dev] Why doesn't this `and` get eliminated
Riyaz Puthiyapurayil via llvm-dev
llvm-dev at lists.llvm.org
Thu Jun 11 18:31:13 PDT 2020
define dso_local i32 @f(i32 %0) {
%2 = and i32 %0, 7
%3 = icmp eq i32 %2, 7
%4 = zext i1 %3 to i32
ret i32 %4
}
I thought instcombine would remove it. It doesn't and nothing else does either. LLVM Version is 10.0.0.
/Riyaz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200612/43c0ad0a/attachment-0001.html>
More information about the llvm-dev
mailing list