@@ -1052,7 +1052,7 @@ Value *InstCombinerImpl::SimplifyMultipleUseDemandedBits(
1052
1052
computeKnownBits (I->getOperand (1 ), RHSKnown, Depth + 1 , CxtI);
1053
1053
computeKnownBits (I->getOperand (0 ), LHSKnown, Depth + 1 , CxtI);
1054
1054
Known = LHSKnown & RHSKnown;
1055
- computeKnownBitsFromAssume (I, Known, Depth, SQ.getWithInstruction (CxtI));
1055
+ computeKnownBitsFromContext (I, Known, Depth, SQ.getWithInstruction (CxtI));
1056
1056
1057
1057
// If the client is only demanding bits that we know, return the known
1058
1058
// constant.
@@ -1072,7 +1072,7 @@ Value *InstCombinerImpl::SimplifyMultipleUseDemandedBits(
1072
1072
computeKnownBits (I->getOperand (1 ), RHSKnown, Depth + 1 , CxtI);
1073
1073
computeKnownBits (I->getOperand (0 ), LHSKnown, Depth + 1 , CxtI);
1074
1074
Known = LHSKnown | RHSKnown;
1075
- computeKnownBitsFromAssume (I, Known, Depth, SQ.getWithInstruction (CxtI));
1075
+ computeKnownBitsFromContext (I, Known, Depth, SQ.getWithInstruction (CxtI));
1076
1076
1077
1077
// If the client is only demanding bits that we know, return the known
1078
1078
// constant.
@@ -1094,7 +1094,7 @@ Value *InstCombinerImpl::SimplifyMultipleUseDemandedBits(
1094
1094
computeKnownBits (I->getOperand (1 ), RHSKnown, Depth + 1 , CxtI);
1095
1095
computeKnownBits (I->getOperand (0 ), LHSKnown, Depth + 1 , CxtI);
1096
1096
Known = LHSKnown ^ RHSKnown;
1097
- computeKnownBitsFromAssume (I, Known, Depth, SQ.getWithInstruction (CxtI));
1097
+ computeKnownBitsFromContext (I, Known, Depth, SQ.getWithInstruction (CxtI));
1098
1098
1099
1099
// If the client is only demanding bits that we know, return the known
1100
1100
// constant.
@@ -1127,7 +1127,7 @@ Value *InstCombinerImpl::SimplifyMultipleUseDemandedBits(
1127
1127
1128
1128
bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap ();
1129
1129
Known = KnownBits::computeForAddSub (/* Add*/ true , NSW, LHSKnown, RHSKnown);
1130
- computeKnownBitsFromAssume (I, Known, Depth, SQ.getWithInstruction (CxtI));
1130
+ computeKnownBitsFromContext (I, Known, Depth, SQ.getWithInstruction (CxtI));
1131
1131
break ;
1132
1132
}
1133
1133
case Instruction::Sub: {
@@ -1143,7 +1143,7 @@ Value *InstCombinerImpl::SimplifyMultipleUseDemandedBits(
1143
1143
bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap ();
1144
1144
computeKnownBits (I->getOperand (0 ), LHSKnown, Depth + 1 , CxtI);
1145
1145
Known = KnownBits::computeForAddSub (/* Add*/ false , NSW, LHSKnown, RHSKnown);
1146
- computeKnownBitsFromAssume (I, Known, Depth, SQ.getWithInstruction (CxtI));
1146
+ computeKnownBitsFromContext (I, Known, Depth, SQ.getWithInstruction (CxtI));
1147
1147
break ;
1148
1148
}
1149
1149
case Instruction::AShr: {
0 commit comments