Skip to content

Commit 2d5d5c3

Browse files
committed
reorder conditional statement
1 parent 9f311a0 commit 2d5d5c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9170,9 +9170,8 @@ int SIInstrInfo::pseudoToMCOpcode(int Opcode) const {
91709170

91719171
unsigned Gen = subtargetEncodingFamily(ST);
91729172

9173-
if (isRenamedInGFX9(Opcode) && ST.getGeneration() == AMDGPUSubtarget::GFX9) {
9173+
if (ST.getGeneration() == AMDGPUSubtarget::GFX9 && isRenamedInGFX9(Opcode))
91749174
Gen = SIEncodingFamily::GFX9;
9175-
}
91769175

91779176
// Adjust the encoding family to GFX80 for D16 buffer instructions when the
91789177
// subtarget has UnpackedD16VMem feature.

0 commit comments

Comments
 (0)