[PATCH] D63382: [InstCombine] fold a shifted zext to a select

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 16 05:22:09 PDT 2019


xbolva00 added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp:675
+      return SelectInst::Create(
+          X, ConstantExpr::getShl(ConstantInt::get(Ty, APInt(BitWidth, 1)), C1),
+          ConstantInt::get(Ty, 0));
----------------
LHS/RHS dont match the comment


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