We cannot move the insertion point to header if SCEV contains div/rem
operations due to they may go over check for zero denominator.
Details
Details
Diff Detail
Diff Detail
Paths 
  |  Differential  D41229  
[SCEV] Fix the movement of insertion point in expander. PR35406. ClosedPublic Authored by skatkov on Dec 14 2017, 3:25 AM. 
Details Summary We cannot move the insertion point to header if SCEV contains div/rem 
Diff Detail Event TimelineThis revision is now accepted and ready to land.Dec 14 2017, 5:31 PM 
 Closed by commit rL320789: [SCEV] Fix the movement of insertion point in expander. PR35406. (authored by skatkov).  ·  Explain WhyDec 14 2017, 9:25 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 126923 lib/Analysis/ScalarEvolutionExpander.cpp
 test/Transforms/IndVarSimplify/pr35406.ll
 
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
or SCEVSDivExpr.