AMDGPU: really don't commute REV opcodes if the target variant doesn't exist
[oota-llvm.git] / lib / Target / AMDGPU / SIInstrInfo.h
index 6fafb945c9938de7350ac007e769cc16613cd26b..0382272068d2c2cf05da858fa7bfcf9c0b12786b 100644 (file)
@@ -117,7 +117,7 @@ public:
   // register.  If there is no hardware instruction that can store to \p
   // DstRC, then AMDGPU::COPY is returned.
   unsigned getMovOpcode(const TargetRegisterClass *DstRC) const;
-  unsigned commuteOpcode(const MachineInstr &MI) const;
+  int commuteOpcode(const MachineInstr &MI) const;
 
   MachineInstr *commuteInstruction(MachineInstr *MI,
                                    bool NewMI = false) const override;