[PATCH] D63382: [InstCombine] fold a shifted zext to a select
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 14 17:19:07 PDT 2019
xbolva00 added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp:936
ConstantInt::get(Ty, APInt::getSignMask(BitWidth)), X);
+ // shl (zext (i1 X)), C1 --> select (X, 1 << C1, 0)
----------------
Not guarded by if (match(Op1, m_Constant(C1))) {
?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63382/new/
https://reviews.llvm.org/D63382
More information about the llvm-commits
mailing list