diff options
author | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2016-02-14 22:30:56 +0000 |
---|---|---|
committer | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2016-02-14 22:30:56 +0000 |
commit | 965edde695a1babe2d55dfc5b2b98da99f8afcb8 (patch) | |
tree | d106aff17ec2e087db8d1cbd58c273133e8a5bdd /clang/test/Index/Core/index-source.m | |
parent | ca741cef3e41a09943709ca052791048301cdd60 (diff) | |
download | bcm5719-llvm-965edde695a1babe2d55dfc5b2b98da99f8afcb8.tar.gz bcm5719-llvm-965edde695a1babe2d55dfc5b2b98da99f8afcb8.zip |
Separate more constant factors of parameters
So far we separated constant factors from multiplications, however,
only when they are at the outermost level of a parameter SCEV. Now,
we also separate constant factors from the parameter SCEV if the
outermost expression is a SCEVAddRecExpr. With the changes to the
SCEVAffinator we can now improve the extractConstantFactor(...)
function at will without worrying about any other code part. Thus,
if needed we can implement a more comprehensive
extractConstantFactor(...) function that will traverse the SCEV
instead of looking only at the outermost level.
Four test cases were affected. One did not change much and the other
three were simplified.
llvm-svn: 260859
Diffstat (limited to 'clang/test/Index/Core/index-source.m')
0 files changed, 0 insertions, 0 deletions