[PATCH] D154953: [InstSimplify] Remove the remainder loop if we know the mask is always true
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 1 06:23:39 PDT 2023
nikic added inline comments.
================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:2121
+ const APInt *PowerC;
+ Value *Shift;
+ if (match(Op1, m_Power2(PowerC)) &&
----------------
nikic wrote:
> Shift -> X to match the comment. This value doesn't need to be a shift.
Ignore this comment, X is not the same value. (Shift it not a great name, but I'm not sure what to call it right now.)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154953/new/
https://reviews.llvm.org/D154953
More information about the llvm-commits
mailing list