forked from OSchip/llvm-project
disable this factoring optzn for GEPs for now, this severely pessimizes some
loops. llvm-svn: 31560
This commit is contained in:
parent
7b6fb8048e
commit
a3acfca920
|
@ -6878,7 +6878,7 @@ Instruction *InstCombiner::FoldPHIArgOpIntoPHI(PHINode &PN) {
|
|||
!isSafeToSinkLoad(LI))
|
||||
return 0;
|
||||
} else if (isa<GetElementPtrInst>(FirstInst)) {
|
||||
if (FirstInst->getNumOperands() == 2)
|
||||
if (0 && FirstInst->getNumOperands() == 2)
|
||||
return FoldPHIArgBinOpIntoPHI(PN);
|
||||
// Can't handle general GEPs yet.
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue