[PATCH] D66383: [InstCombine] Shift amount reassociation in bittest: trunc-of-lshr (PR42399)
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 28 12:25:38 PDT 2019
spatel accepted this revision.
spatel added a comment.
This revision is now accepted and ready to land.
LGTM - still complicated, but easier to read without the ConstExpr logic. :)
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp:3472-3474
+ Constant *NewShAmtSplat = NewShAmt->getType()->isVectorTy()
+ ? NewShAmt->getSplatValue()
+ : NewShAmt;
----------------
That's a confusing name for the common (scalar) case since that's not a splat. "NewShAmtC" ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66383/new/
https://reviews.llvm.org/D66383
More information about the llvm-commits
mailing list