diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-01-12 23:46:04 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-01-12 23:46:04 +0000 |
commit | 7e31c8f0ae5abb33028567461cbd3915303a49af (patch) | |
tree | f54f5fc08ef355d3a822aede08e18f4f6ab9b90d /llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
parent | 5c8709bc5eb42683579fcc61538bd3ab9dad3bf2 (diff) | |
download | bcm5719-llvm-7e31c8f0ae5abb33028567461cbd3915303a49af.tar.gz bcm5719-llvm-7e31c8f0ae5abb33028567461cbd3915303a49af.zip |
Fix an editor goof in r171738 that Bill spotted. He may even have a test
case, but looking at the diff this was an obviously unintended change.
Thanks for the careful review Bill! =]
llvm-svn: 172336
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index c7b853ea641..87e34473fca 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -2891,7 +2891,6 @@ void LSRInstance::InsertInitialFormula(const SCEV *S, LSRUse &LU, size_t LUIdx) { Formula F; F.InitialMatch(S, L, SE); - F.HasBaseReg = true; bool Inserted = InsertFormula(LU, LUIdx, F); assert(Inserted && "Initial formula already exists!"); (void)Inserted; } @@ -2903,6 +2902,7 @@ LSRInstance::InsertSupplementalFormula(const SCEV *S, LSRUse &LU, size_t LUIdx) { Formula F; F.BaseRegs.push_back(S); + F.HasBaseReg = true; bool Inserted = InsertFormula(LU, LUIdx, F); assert(Inserted && "Supplemental formula already exists!"); (void)Inserted; } |