[PATCH] D151690: [LoopIdiom] Freeze BitPos if !isGuaranteedNotToBeUndefOrPoison
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 30 07:42:09 PDT 2023
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp:2403
+ BitMaskI->getOperand(1) == BitPos &&
+ "The case BitPos may undef is only existed in this specific pattern");
+ FreezeInst *BitPosFrozen =
----------------
Maybe it would be more robust to RAUW all uses instead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151690/new/
https://reviews.llvm.org/D151690
More information about the llvm-commits
mailing list