mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Revert r121886. DecomposeGEPExpression needs to be kept
in sync. llvm-svn: 121892
This commit is contained in:
parent
2a376c535e
commit
4f6b802044
@ -1441,14 +1441,6 @@ Value *llvm::GetUnderlyingObject(Value *V, unsigned MaxLookup) {
|
||||
return V;
|
||||
V = GA->getAliasee();
|
||||
} else {
|
||||
// See if InstructionSimplify knows any relevant tricks.
|
||||
if (Instruction *I = dyn_cast<Instruction>(V))
|
||||
// TODO: Aquire TargetData and DominatorTree and use them.
|
||||
if (Value *Simplified = SimplifyInstruction(I, 0, 0)) {
|
||||
V = Simplified;
|
||||
continue;
|
||||
}
|
||||
|
||||
return V;
|
||||
}
|
||||
assert(V->getType()->isPointerTy() && "Unexpected operand type!");
|
||||
|
Loading…
Reference in New Issue
Block a user