Teach isHighCostExpansion to consider divisions by power-of-two
constants as cheap and add a test case. This change is needed for a new
user of isHighCostExpansion that will be added in a subsequent change.
Depends on D8995.
Paths
| Differential D8993
[SCEV] Strengthen SCEVExpander::isHighCostExpansion. ClosedPublic Authored by sanjoy on Apr 11 2015, 11:58 PM.
Details Summary Teach isHighCostExpansion to consider divisions by power-of-two Depends on D8995.
Diff Detail
Event Timelinesanjoy updated this object. sanjoy retitled this revision from [SCEV] Extract and strengthen isHighCostExpansion. to [SCEV] Strengthen SCEVExpander::isHighCostExpansion..Apr 12 2015, 11:54 AM sanjoy updated this object. atrick edited edge metadata. Comment ActionsLGTM. But I suggest putting a descriptive comment in the test case. This revision is now accepted and ready to land.Apr 13 2015, 12:52 AM Closed by commit rL234845: [SCEV] Strengthen SCEVExpander::isHighCostExpansion. (authored by sanjoy). · Explain WhyApr 13 2015, 8:23 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 23712 llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
llvm/trunk/test/Transforms/IndVarSimplify/lftr-udiv-tripcount.ll
|