mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
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! =] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172336 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7cd32479b0
commit
eab0ba03cf
@ -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…
x
Reference in New Issue
Block a user