[PATCH] D157313: [ValueTracking] Check likely to be canonicalized constant operands first in ; NFC
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 11:48:00 PDT 2023
goldstein.w.n added inline comments.
================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:2109
+ return isKnownToBeAPowerOfTwo(I->getOperand(2), OrZero, Depth, Q) &&
+ isKnownToBeAPowerOfTwo(I->getOperand(1), OrZero, Depth, Q);
case Instruction::PHI: {
----------------
nikic wrote:
> Does this canonicalization actually exist?
No. Happy to drop but think its not difference either way.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157313/new/
https://reviews.llvm.org/D157313
More information about the llvm-commits
mailing list