mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
Make Solve check its own post-condition, to reduce clutter in the
top-level LSRInstance logic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104278 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
76c315a26c
commit
a552878508
@ -3109,6 +3109,8 @@ void LSRInstance::Solve(SmallVectorImpl<const Formula *> &Solution) const {
|
||||
Solution[i]->print(dbgs());
|
||||
dbgs() << '\n';
|
||||
});
|
||||
|
||||
assert(Solution.size() == Uses.size() && "Malformed solution!");
|
||||
}
|
||||
|
||||
/// HoistInsertPosition - Helper for AdjustInsertPositionForExpand. Climb up
|
||||
@ -3547,7 +3549,6 @@ LSRInstance::LSRInstance(const TargetLowering *tli, Loop *l, Pass *P)
|
||||
|
||||
SmallVector<const Formula *, 8> Solution;
|
||||
Solve(Solution);
|
||||
assert(Solution.size() == Uses.size() && "Malformed solution!");
|
||||
|
||||
// Release memory that is no longer needed.
|
||||
Factors.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user