Skip to content

Commit 69f1504

Browse files
committed
Remove bad build_vector hasSourceMods() implementation.
1 parent 8c2fef5 commit 69f1504

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -726,18 +726,6 @@ static bool selectSupportsSourceMods(const SDNode *N) {
726726
return N->getValueType(0) == MVT::f32;
727727
}
728728

729-
LLVM_READONLY
730-
static bool buildVectorSupportsSourceMods(const SDNode *N) {
731-
if (N->getValueType(0) != MVT::v2f32)
732-
return true;
733-
734-
if (N->getOperand(0)->getOpcode() != ISD::SELECT ||
735-
N->getOperand(1)->getOpcode() != ISD::SELECT)
736-
return true;
737-
738-
return false;
739-
}
740-
741729
// Most FP instructions support source modifiers, but this could be refined
742730
// slightly.
743731
LLVM_READONLY
@@ -771,8 +759,6 @@ static bool hasSourceMods(const SDNode *N) {
771759
return true;
772760
}
773761
}
774-
case ISD::BUILD_VECTOR:
775-
return buildVectorSupportsSourceMods(N);
776762
case ISD::SELECT:
777763
return selectSupportsSourceMods(N);
778764
default:

0 commit comments

Comments
 (0)