[PATCH] D101191: [InstCombine] Fully disable select to and/or i1 folding

Nikita Popov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 23 12:15:24 PDT 2021


nikic 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]]
 ;
----------------
It looks like this fold could be salvaged, if we wanted to: https://alive2.llvm.org/ce/z/TpsYAj


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101191



More information about the cfe-commits mailing list