diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-14 11:27:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-14 11:27:58 +0000 |
commit | 65ea171409e8c25db20806fb09e820f46e3d11a2 (patch) | |
tree | 081a79420f9555f0962134e7cd6d1fd2696c93db /lib/Transforms/LevelRaise.cpp | |
parent | c2ae4f6d3b72d153272b244fc1c8701ee89cbddb (diff) |
Remove much cruft from the MemAccessInst instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/LevelRaise.cpp')
-rw-r--r-- | lib/Transforms/LevelRaise.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp index dfe92ee234..78bb2ebce2 100644 --- a/lib/Transforms/LevelRaise.cpp +++ b/lib/Transforms/LevelRaise.cpp @@ -630,7 +630,7 @@ static bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) { } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { Value *Val = SI->getOperand(0); - Value *Pointer = SI->getPtrOperand(); + Value *Pointer = SI->getPointerOperand(); // Peephole optimize the following instructions: // %t1 = getelementptr {<...>} * %StructPtr, <element indices> @@ -648,7 +648,7 @@ static bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) { PRINT_PEEPHOLE2("gep-store:in", GEP, SI); ReplaceInstWithInst(BB->getInstList(), BI, - SI = new StoreInst(Val, GEP->getPtrOperand(), + SI = new StoreInst(Val, GEP->getPointerOperand(), Indices)); PRINT_PEEPHOLE1("gep-store:out", SI); return true; @@ -685,7 +685,7 @@ static bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) { } else if (LoadInst *LI = dyn_cast<LoadInst>(I)) { - Value *Pointer = LI->getPtrOperand(); + Value *Pointer = LI->getPointerOperand(); // Peephole optimize the following instructions: // %t1 = getelementptr {<...>} * %StructPtr, <element indices> @@ -703,7 +703,7 @@ static bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) { PRINT_PEEPHOLE2("gep-load:in", GEP, LI); ReplaceInstWithInst(BB->getInstList(), BI, - LI = new LoadInst(GEP->getPtrOperand(), + LI = new LoadInst(GEP->getPointerOperand(), Indices)); PRINT_PEEPHOLE1("gep-load:out", LI); return true; |