[PATCH] D93998: [InstSimplify] Fold out-of-bounds shift to poison

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 3 12:19:25 PST 2021


nikic added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/shift.ll:1724
+; CHECK-NEXT:    [[G18:%.*]] = getelementptr i177*, i177** [[A2:%.*]], i64 poison
+; CHECK-NEXT:    store i177** [[G18]], i177*** undef, align 8
 ; CHECK-NEXT:    ret i177 0
----------------
A peculiar regression. Not sure how this folded before, but we're clearly missing a fold here: https://llvm.godbolt.org/z/89bah8 Poison can fold to poison: https://alive2.llvm.org/ce/z/7Nwdri Undef can fold to base pointer: https://alive2.llvm.org/ce/z/y6NLvJ Undef can't fold to undef: https://alive2.llvm.org/ce/z/emLp_H


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93998/new/

https://reviews.llvm.org/D93998



More information about the llvm-commits mailing list