MachineCSE: Add a target query for the LookAheadLimit heurisitic
[oota-llvm.git] / lib / Target / R600 / SIInstrInfo.h
index 7e049dca7b142732f9a7827b5c008cb28d943f73..f952c0f085344164625f4b73a57307d6a036342e 100644 (file)
@@ -142,6 +142,8 @@ public:
   bool FoldImmediate(MachineInstr *UseMI, MachineInstr *DefMI,
                      unsigned Reg, MachineRegisterInfo *MRI) const final;
 
+  unsigned getMachineCSELookAheadLimit() const override { return 500; }
+
   bool isSALU(uint16_t Opcode) const {
     return get(Opcode).TSFlags & SIInstrFlags::SALU;
   }