[PATCH] D101191: [InstCombine] Fully disable select to and/or i1 folding
Juneyoung Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 23 20:50:20 PDT 2021
aqjune added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/logical-select.ll:385
+; CHECK-NEXT: [[OR:%.*]] = select i1 [[AND1]], i1 true, i1 [[AND2]]
+; CHECK-NEXT: ret i1 [[OR]]
;
----------------
nikic wrote:
> It looks like this fold could be salvaged, if we wanted to: https://alive2.llvm.org/ce/z/TpsYAj
Thx, I added the transformation.
If the transformations look good, I'll make it as a separate commit with tests and push it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101191/new/
https://reviews.llvm.org/D101191
More information about the llvm-commits
mailing list