[llvm-dev] [SCEV] getMulExpr could be extremely slow when creating SCEVs for a long chain of add/mul instructions
Sanjoy Das via llvm-dev
llvm-dev at lists.llvm.org
Wed Aug 3 12:23:29 PDT 2016
Hi,
I generally don't like cutoffs / "max depths", but I can't think of a
better solution here (other than perhaps not doing this simplification
at all, but that will affect things that depend on this
simplification). I'd be okay with adding a "SimplificationDepth" type
cl::opt to SCEV that controls the point where we bail out of
simplifying further.
-- Sanjoy
More information about the llvm-dev
mailing list