Skip to content

Commit 62dc46d

Browse files
committed
reorder conditional statement
1 parent 848056e commit 62dc46d

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
@@ -9151,9 +9151,8 @@ int SIInstrInfo::pseudoToMCOpcode(int Opcode) const {
91519151

91529152
unsigned Gen = subtargetEncodingFamily(ST);
91539153

9154-
if (isRenamedInGFX9(Opcode) && ST.getGeneration() == AMDGPUSubtarget::GFX9) {
9154+
if (ST.getGeneration() == AMDGPUSubtarget::GFX9 && isRenamedInGFX9(Opcode))
91559155
Gen = SIEncodingFamily::GFX9;
9156-
}
91579156

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

0 commit comments

Comments
 (0)