Skip to content

Commit 801bf90

Browse files
committed
fix comment
1 parent c7c53ab commit 801bf90

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
@@ -825,9 +825,8 @@ SITargetLowering::SITargetLowering(const TargetMachine &TM,
825825
Custom);
826826
}
827827

828-
// true 16 currently unsupported
829-
if (!Subtarget->hasTrue16BitInsts() || (!Subtarget->useRealTrue16Insts() ||
830-
!Subtarget->useRealTrue16Insts())) {
828+
// Avoid true 16 instruction
829+
if (!Subtarget->hasTrue16BitInsts() || !Subtarget->useRealTrue16Insts()) {
831830
// MVT::v2i16 for src type check in foldToSaturated
832831
// MVT::v2i8 for dst type check in CustomLowerNode
833832
setOperationAction(ISD::TRUNCATE_SSAT_U, {MVT::v2i16, MVT::v2i8}, Custom);

0 commit comments

Comments
 (0)