[AArch64 MachineCombine] Enhance/Add support for general reassociation to reduce...
[oota-llvm.git] / lib / Target / AArch64 / AArch64InstrInfo.h
index ae02822a32e6a1cae2147b92473a723972c565cf..b5bb446f8c1679a6e3dc3a2828d5e4d1f16c84f2 100644 (file)
@@ -169,7 +169,9 @@ public:
   bool getMachineCombinerPatterns(MachineInstr &Root,
                   SmallVectorImpl<MachineCombinerPattern> &Patterns)
       const override;
-
+  /// Return true when Inst is associative and commutative so that it can be
+  /// reassociated.
+  bool isAssociativeAndCommutative(const MachineInstr &Inst) const override;
   /// When getMachineCombinerPatterns() finds patterns, this function generates
   /// the instructions that could replace the original code sequence
   void genAlternativeCodeSequence(