Skip to content

Commit bebeb48

Browse files
committed
fix format
1 parent ebca12d commit bebeb48

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ SITargetLowering::SITargetLowering(const TargetMachine &TM,
827827

828828
// True 16 instruction is current not supported
829829
// FIXME: Add support for true 16 when supported
830-
if (!(Subtarget->hasTrue16BitInsts() && Subtarget->useRealTrue16Insts())) {
830+
if (!Subtarget->hasTrue16BitInsts() || !Subtarget->useRealTrue16Insts()) {
831831
// MVT::vNi16 for src type check in foldToSaturated
832832
// MVT::vNi8 for dst type check in CustomLowerNode
833833
// FIXME: Handle N = 2, 4, 8 first, should change verification logic from
@@ -6654,8 +6654,7 @@ void SITargetLowering::ReplaceNodeResults(SDNode *N,
66546654
assert(EleNo == DstVT.getVectorNumElements());
66556655

66566656
if (EleNo == 2) {
6657-
SDValue Op =
6658-
DAG.getNode(AMDGPUISD::SAT_PK_CAST, SL, MVT::i16, Src);
6657+
SDValue Op = DAG.getNode(AMDGPUISD::SAT_PK_CAST, SL, MVT::i16, Src);
66596658
Op = DAG.getNode(ISD::BITCAST, SL, N->getValueType(0), Op);
66606659
Results.push_back(Op);
66616660
} else {

0 commit comments

Comments
 (0)