[PATCH] D104661: [InstSimplify] Add more poison folding optimizations
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 23 01:45:38 PDT 2021
nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/test/Transforms/InstCombine/select-binop-cmp.ll:1270
; We can't replace %x by 0 here, because that would cause UB. However,
; replacing the udiv result by poisong is fine.
define i32 @select_replace_udiv_non_speculatable(i32 %x, i32 %y) {
----------------
While you're in the area: poisong -> poison
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104661/new/
https://reviews.llvm.org/D104661
More information about the llvm-commits
mailing list