1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Clear the FunctionLoweringInfo object before doing other things that

don't need it.

llvm-svn: 101262
This commit is contained in:
Dan Gohman 2010-04-14 17:13:16 +00:00
parent 3738dc7587
commit 45b0642839

View File

@ -216,15 +216,15 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
SelectAllBasicBlocks(Fn, *MF, TII);
// Release function-specific state. SDB and CurDAG are already cleared
// at this point.
FuncInfo->clear();
// If the first basic block in the function has live ins that need to be
// copied into vregs, emit the copies into the top of the block before
// emitting the code for the block.
RegInfo->EmitLiveInCopies(MF->begin(), TRI, TII);
// Release function-specific state. SDB and CurDAG are already cleared
// at this point.
FuncInfo->clear();
return true;
}