mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-10 06:00:30 +00:00
Clear split info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40944 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c52ca08c56
commit
9021c7001e
@ -65,6 +65,15 @@ namespace {
|
||||
|
||||
// Loop exit condition.
|
||||
ICmpInst *ExitCondition;
|
||||
|
||||
// Clear split info.
|
||||
void clear() {
|
||||
IndVar = NULL;
|
||||
SplitValue = NULL;
|
||||
ExitValue = NULL;
|
||||
SplitCondition = NULL;
|
||||
ExitCondition = NULL;
|
||||
}
|
||||
};
|
||||
|
||||
private:
|
||||
@ -193,6 +202,8 @@ void LoopIndexSplit::findSplitCondition() {
|
||||
if (SD.SplitCondition) {
|
||||
SD.IndVar = PN;
|
||||
SplitData.push_back(SD);
|
||||
// Before reusing SD for next split condition clear its content.
|
||||
SD.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user