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 | 1237e86597b9a60388a7e08a34aaddae42a0df0c (patch) | |
tree | e19404004ee86be2a7ca59e098937f1c8ab6b26c /llvm/lib/Transforms/LevelRaise.cpp | |
parent | afea660cb5f18318d47e69b5c8a29eed61758967 (diff) | |
download | bcm5719-llvm-1237e86597b9a60388a7e08a34aaddae42a0df0c.tar.gz bcm5719-llvm-1237e86597b9a60388a7e08a34aaddae42a0df0c.zip |
Remove much cruft from the MemAccessInst instruction
llvm-svn: 1298
Diffstat (limited to 'llvm/lib/Transforms/LevelRaise.cpp')
-rw-r--r-- | llvm/lib/Transforms/LevelRaise.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/LevelRaise.cpp b/llvm/lib/Transforms/LevelRaise.cpp index dfe92ee234c..78bb2ebce2d 100644 --- a/llvm/lib/Transforms/LevelRaise.cpp +++ b/llvm/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; |