Commit c8d13bd3 authored by Olivier Sallenave's avatar Olivier Sallenave
Browse files

Override the TLI callback enableAggressiveFMAFusion and return true. Indeed,...

Override the TLI callback enableAggressiveFMAFusion and return true. Indeed, fmul, fmadd and fadd nodes cost the same number of cycles, so we can enable more combining heuristics to produce more fmadd nodes.

llvm-svn: 225984
parent 5ca7fa15
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -507,6 +507,8 @@ public:

  bool isFMAFasterThanFMulAndFAdd(EVT) const override { return true; }

  bool enableAggressiveFMAFusion(EVT VT) const override { return true; }

private:
  const NVPTXSubtarget &nvptxSubtarget; // cache the subtarget here