[PATCH] D135264: [MachineCombiner][RISCV] Enable MachineCombiner for RISCV

Anton Sidorenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 5 05:57:26 PDT 2022


asi-sc added a comment.

This patch does not contain the full test to make changes more readable during the review.

Whetstone double-precision perf results for sifive-u74 (`-O3 -funroll-loops -finline-functions -ffast-math -mtune=sifive-u74`)
N1 +8.9%
N2 +1%

Machine combiner is off

  Loop content                  Result              MFLOPS      MOPS   Seconds
  
  N1 floating point     -1.12398255667391944       261.534              0.743
  N2 floating point     -1.12187079889293351       222.128              6.123
  N3 if then else        1.00000000000000000               14291.202    0.073
  N4 fixed point        12.00000000000000000               289771357.091    0.000
  N5 sin,cos etc.        0.49902937281518078                  20.891   40.300
  N6 floating point      0.99999987890802811       170.563             32.001
  N7 assignments         3.00000000000000000               28564.747    0.065
  N8 exp,sqrt etc.       0.75100163018453681                  21.163   17.787
  
  MWIPS                                           1042.205             97.092

Machine combiner is on

  Loop content                  Result              MFLOPS      MOPS   Seconds
  
  N1 floating point     -1.12398255667391900       284.892              0.692
  N2 floating point     -1.12187079889295083       224.735              6.144
  N3 if then else        1.00000000000000000               14281.518    0.074
  N4 fixed point        12.00000000000000000               269692501.333    0.000
  N5 sin,cos etc.        0.49902937281518078                  20.787   41.122
  N6 floating point      0.99999987890802811       170.559             32.492
  N7 assignments         3.00000000000000000               28605.105    0.066
  N8 exp,sqrt etc.       0.75100163018453681                  21.534   17.748
  
  MWIPS                                           1044.744             98.340


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135264/new/

https://reviews.llvm.org/D135264



More information about the llvm-commits mailing list