Skip to content

Commit 043a068

Browse files
committed
Add a nonfunctional target DAG combine hook
1 parent 0d9be16 commit 043a068

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16892,7 +16892,11 @@ SDValue SITargetLowering::PerformDAGCombine(SDNode *N,
1689216892
return SDValue();
1689316893

1689416894
switch (N->getOpcode()) {
16895-
case ISD::ADD:
16895+
case ISD::ABS:
16896+
if (N->getValueType(0) == MVT::i16 || N->getValueType(0) == MVT::i8)
16897+
return lowerABSi16(SDValue(N,0), DCI.DAG);
16898+
break;
16899+
case ISD::ADD:
1689616900
return performAddCombine(N, DCI);
1689716901
case ISD::PTRADD:
1689816902
return performPtrAddCombine(N, DCI);

0 commit comments

Comments
 (0)