Skip to content

Commit 0bf3c38

Browse files
committed
Fix build failure revealed by c35ca3a
This commit resolves a Linux kernel build failure that was revealed by c35ca3a. The patch introduces two new intrinsics, which ultimately changes the intrinsic numbering of other PPC intrinsics. This causes an issue introduced by ff40fb0, as the patch checks for intrinsics with particular values, but the addition of the fnabs/fnabss intrinsics updates the original sqrt/sdiv intrinsic values.
1 parent cdd54cb commit 0bf3c38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4646,7 +4646,8 @@ static bool mayUseP9Setb(SDNode *N, const ISD::CondCode &CC, SelectionDAG *DAG,
46464646
static bool isSWTestOp(SDValue N) {
46474647
if (N.getOpcode() == PPCISD::FTSQRT)
46484648
return true;
4649-
if (N.getNumOperands() < 1 || !isa<ConstantSDNode>(N.getOperand(0)))
4649+
if (N.getNumOperands() < 1 || !isa<ConstantSDNode>(N.getOperand(0)) ||
4650+
N.getOpcode() != ISD::INTRINSIC_WO_CHAIN)
46504651
return false;
46514652
switch (N.getConstantOperandVal(0)) {
46524653
case Intrinsic::ppc_vsx_xvtdivdp:

0 commit comments

Comments
 (0)