[PATCH] D108772: [LSR] Make sure that Factor fits into Base type
Danila Malyutin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 26 11:19:35 PDT 2021
danilaml added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:3974
const SCEV *FactorS = SE.getConstant(IntTy, Factor);
----------------
Avoids truncation/overflow here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108772/new/
https://reviews.llvm.org/D108772
More information about the llvm-commits
mailing list