File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -2637,6 +2637,7 @@ Instruction *InstCombinerImpl::visitAnd(BinaryOperator &I) {
2637
2637
// This is a generous interpretation for noimplicitfloat, this is not a true
2638
2638
// floating-point operation.
2639
2639
//
2640
+ // Assumes any IEEE-represented type has the sign bit in the high bit.
2640
2641
// TODO: Unify with APInt matcher. This version allows undef unlike m_APInt
2641
2642
Value *CastOp;
2642
2643
if (match (Op0, m_ElementWiseBitCast (m_Value (CastOp))) &&
@@ -4047,6 +4048,8 @@ Instruction *InstCombinerImpl::visitOr(BinaryOperator &I) {
4047
4048
// the number of instructions. This is still probably a better canonical form
4048
4049
// as it enables FP value tracking.
4049
4050
//
4051
+ // Assumes any IEEE-represented type has the sign bit in the high bit.
4052
+ //
4050
4053
// This is generous interpretation of noimplicitfloat, this is not a true
4051
4054
// floating-point operation.
4052
4055
Value *CastOp;
@@ -4850,6 +4853,7 @@ Instruction *InstCombinerImpl::visitXor(BinaryOperator &I) {
4850
4853
// This is generous interpretation of noimplicitfloat, this is not a true
4851
4854
// floating-point operation.
4852
4855
//
4856
+ // Assumes any IEEE-represented type has the sign bit in the high bit.
4853
4857
// TODO: Unify with APInt matcher. This version allows undef unlike m_APInt
4854
4858
Value *CastOp;
4855
4859
if (match (Op0, m_ElementWiseBitCast (m_Value (CastOp))) &&
You can’t perform that action at this time.
0 commit comments