[PATCH] D99481: [InstCombine] Fix miscompile on GEP+load to icmp fold (PR45210)
Juneyoung Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 14 04:53:15 PDT 2021
aqjune added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/load-cmp.ll:305
+; CHECK-NEXT: [[TMP2:%.*]] = and i32 [[TMP1]], 268435455
+; CHECK-NEXT: [[R:%.*]] = icmp ne i32 [[TMP2]], 1
; CHECK-NEXT: ret i1 [[R]]
----------------
Okay, the mask '268435455' is 0x0F..FF and it makes sense because the size of struct `%Foo` is 16.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99481/new/
https://reviews.llvm.org/D99481
More information about the llvm-commits
mailing list