search for: addrec1

Displaying 1 result from an estimated 1 matches for "addrec1".

Did you mean: addrec
2016 Aug 03
6
[SCEV] getMulExpr could be extremely slow when creating SCEVs for a long chain of add/mul instructions
...bool OpsModified = false; for (unsigned OtherIdx = Idx+1; OtherIdx != Ops.size() && isa<SCEVAddRecExpr>(Ops[OtherIdx]); ... ... One way I thought about to fix this is to have a threshold for the number of terms in each AddRec when folding them. For example, we only fold AddRec1 * AddRec2 when (#terms in AddRec1 + #terms in AddRec2) < threshold. I tried setting the threshold to 8, and it stops early for this case. Another way is to limit the depth of this folding, but this might require change of API. -------------- next part -------------- An HTML attachment was scrub...