mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 16:36:40 +00:00
Get rid of a dead variable, and fix a typo in a comment.
llvm-svn: 14560
This commit is contained in:
parent
b92c136437
commit
96e0f832f8
@ -58,7 +58,7 @@ FunctionPass *llvm::createDecomposeMultiDimRefsPass() {
|
|||||||
//
|
//
|
||||||
// opCode CompositeType* P, [uint|ubyte] idx1, ..., [uint|ubyte] idxN
|
// opCode CompositeType* P, [uint|ubyte] idx1, ..., [uint|ubyte] idxN
|
||||||
//
|
//
|
||||||
// this function generates the foll sequence:
|
// this function generates the following sequence:
|
||||||
//
|
//
|
||||||
// ptr1 = getElementPtr P, idx1
|
// ptr1 = getElementPtr P, idx1
|
||||||
// ptr2 = getElementPtr ptr1, 0, idx2
|
// ptr2 = getElementPtr ptr1, 0, idx2
|
||||||
@ -83,9 +83,6 @@ bool llvm::DecomposeArrayRef(GetElementPtrInst* GEP) {
|
|||||||
Value *LastPtr = GEP->getPointerOperand();
|
Value *LastPtr = GEP->getPointerOperand();
|
||||||
Instruction *InsertPoint = GEP->getNext(); // Insert before the next insn
|
Instruction *InsertPoint = GEP->getNext(); // Insert before the next insn
|
||||||
|
|
||||||
// The vector of new instructions to be created
|
|
||||||
std::vector<Instruction*> NewInsts;
|
|
||||||
|
|
||||||
// Process each index except the last one.
|
// Process each index except the last one.
|
||||||
User::const_op_iterator OI = GEP->idx_begin(), OE = GEP->idx_end();
|
User::const_op_iterator OI = GEP->idx_begin(), OE = GEP->idx_end();
|
||||||
for (; OI+1 != OE; ++OI) {
|
for (; OI+1 != OE; ++OI) {
|
||||||
|
Loading…
Reference in New Issue
Block a user