summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-10-02 21:16:50 +0000
committerEric Christopher <echristo@apple.com>2012-10-02 21:16:50 +0000
commitd40ce7a43d3d55734342c79736aa88a8bd3aaa47 (patch)
treef58fc7a8a46eced1ba797f7ca8a09f49cacb4dd0 /llvm/lib/Target/X86/X86FastISel.cpp
parentcc613e1c2598818b0cc1ce2a454b373c202934d4 (diff)
downloadbcm5719-llvm-d40ce7a43d3d55734342c79736aa88a8bd3aaa47.tar.gz
bcm5719-llvm-d40ce7a43d3d55734342c79736aa88a8bd3aaa47.zip
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
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp4
1 files changed, 2 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud