[PATCH] D133340: [PowerPC][GISel]select floating point constant from TOC

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 29 23:29:29 PST 2022


shchenz added inline comments.


================
Comment at: llvm/test/CodeGen/PowerPC/GlobalISel/fconstant.ll:21
+; MEDIUM-NEXT:    addi 3, 3, .LCPI0_0 at toc@l
+; MEDIUM-NEXT:    lfs 1, 0(3)
+; MEDIUM-NEXT:    blr
----------------
This can be improved to `lfs 1, .LCPI0_0 at toc@l(3)`. DAG adds a peephole to handle this.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133340



More information about the llvm-commits mailing list