From d40ce7a43d3d55734342c79736aa88a8bd3aaa47 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 2 Oct 2012 21:16:50 +0000 Subject: Remove the SavePoint infrastructure from fast isel, replace with just an insert point from the MachineBasicBlock and let the location be updated as we access it. llvm-svn: 165049 --- llvm/lib/Target/X86/X86FastISel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/X86/X86FastISel.cpp') diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index 54704d84a9c..83f2f6a202b 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -545,7 +545,7 @@ bool X86FastISel::X86SelectAddress(const Value *V, X86AddressMode &AM) { StubAM.GVOpFlags = GVFlags; // Prepare for inserting code in the local-value area. - SavePoint SaveInsertPt = enterLocalValueArea(); + MachineBasicBlock::iterator SaveIter = enterLocalValueArea(); if (TLI.getPointerTy() == MVT::i64) { Opc = X86::MOV64rm; @@ -564,7 +564,7 @@ bool X86FastISel::X86SelectAddress(const Value *V, X86AddressMode &AM) { addFullAddress(LoadMI, StubAM); // Ok, back to normal mode. - leaveLocalValueArea(SaveInsertPt); + leaveLocalValueArea(SaveIter); // Prevent loading GV stub multiple times in same MBB. LocalValueMap[V] = LoadReg; -- cgit v1.2.3