[PATCH] D141473: [PowerPC] Only optimize store of fptoint for single used

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 11 23:49:30 PST 2023


shchenz added inline comments.


================
Comment at: llvm/test/CodeGen/PowerPC/store_fptoi.ll:1032
-; CHECK-NEXT:    stxsd 2, 0(6)
+; CHECK-NEXT:    xscvdpsxds 0, 1
+; CHECK-NEXT:    mffprd 3, 0
+; CHECK-NEXT:    std 3, 0(4)
+; CHECK-NEXT:    std 3, 0(5)
+; CHECK-NEXT:    std 3, 0(6)
 ; CHECK-NEXT:    blr
 ;
----------------
>From the case change, I am thinking common the 3 `xscvdpsxds` sounds like making more sense?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D141473



More information about the llvm-commits mailing list