remove the AllowAggressive argument to FoldOpIntoPhi. It is forced to false in the
first line of the function because it isn't a good idea, even for compares. llvm-svn: 123566
This commit is contained in:
@@ -2125,7 +2125,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
|
||||
// block. If in the same block, we're encouraging jump threading. If
|
||||
// not, we are just pessimizing the code by making an i1 phi.
|
||||
if (LHSI->getParent() == I.getParent())
|
||||
if (Instruction *NV = FoldOpIntoPhi(I, true))
|
||||
if (Instruction *NV = FoldOpIntoPhi(I))
|
||||
return NV;
|
||||
break;
|
||||
case Instruction::Select: {
|
||||
@@ -2648,7 +2648,7 @@ Instruction *InstCombiner::visitFCmpInst(FCmpInst &I) {
|
||||
// block. If in the same block, we're encouraging jump threading. If
|
||||
// not, we are just pessimizing the code by making an i1 phi.
|
||||
if (LHSI->getParent() == I.getParent())
|
||||
if (Instruction *NV = FoldOpIntoPhi(I, true))
|
||||
if (Instruction *NV = FoldOpIntoPhi(I))
|
||||
return NV;
|
||||
break;
|
||||
case Instruction::SIToFP:
|
||||
|
||||
Reference in New Issue
Block a user