[PATCH] D129715: [LoongArch] Optimize the loading of floating-point immediates

Lu Weining via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 19:35:36 PDT 2022


SixWeining added a comment.

This change optimzies out the constant pool for loading floating-point constant by li+i2f, so I think the title could be:  "[LoongArch] Optimize the loading of floating-point immediates by li+i2f", and it' better that use a common case in the summary but not the 1.0.

To other reviewers: we tested this optimization with an internal llvm version (llvm13) on 3A5000, and it shows that SPEC CPU2006 FP score increases 1% in average. 470.lbm score increases 8.9%. But we wonder why other architectures have not done so? Is there any potential issue?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129715



More information about the llvm-commits mailing list