[PATCH] D155708: [AArch64][NFC] Call the API getVScaleRange directly
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 20 00:33:08 PDT 2023
nikic added inline comments.
================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:6544
+ ConstantRange CR = getVScaleRange(F, RetTy->getScalarSizeInBits());
+ if (CR.getUnsignedMax() == CR.getUnsignedMin())
+ return ConstantInt::get(RetTy, CR.getUnsignedMin().getZExtValue());
----------------
`if (const APInt *C = CR.getSingleElement())`
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155708/new/
https://reviews.llvm.org/D155708
More information about the llvm-commits
mailing list