[PATCH] D111968: [TTI] Add OperandValueProperties::OP_NegatedPowerOf2 enum
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 18 05:58:21 PDT 2021
RKSimon added inline comments.
================
Comment at: llvm/lib/Analysis/TargetTransformInfo.cpp:673
OpProps = OP_PowerOf2;
+ else if ((-CI->getValue()).isPowerOf2())
+ OpProps = OP_NegatedPowerOf2;
----------------
I'm starting to think a APInt::isNegatedPowerOf2() wrapper might be useful?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111968/new/
https://reviews.llvm.org/D111968
More information about the llvm-commits
mailing list