forked from OSchip/llvm-project
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
This commit is contained in:
parent
5c8709bc5e
commit
7e31c8f0ae
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue