Skip to content

Commit 67903fa

Browse files
committed
Review changes
1 parent 4b20959 commit 67903fa

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5304,8 +5304,7 @@ SDValue AMDGPUTargetLowering::expandABS(SDNode *N, SelectionDAG &DAG,
53045304
if (!IsNegative)
53055305
return TruncResult;
53065306

5307-
return DAG.getNode(ISD::SUB, DL, N->getValueType(0),
5308-
DAG.getConstant(0, DL, N->getValueType(0)), TruncResult);
5307+
return DAG.getNegative(TruncResult,DL,N->getValueType(0));
53095308
}
53105309

53115310
SDValue AMDGPUTargetLowering::PerformDAGCombine(SDNode *N,

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#include "llvm/IR/IntrinsicsR600.h"
4343
#include "llvm/IR/MDBuilder.h"
4444
#include "llvm/Support/CommandLine.h"
45-
#include "llvm/Support/Compiler.h"
4645
#include "llvm/Support/KnownBits.h"
4746
#include "llvm/Support/ModRef.h"
4847
#include "llvm/Transforms/Utils/LowerAtomic.h"

0 commit comments

Comments
 (0)