[PATCH] D58430: [PowerPC] Enhance the fast selection of fptoi & fptrunc instruction and clean up related asserts

Zhang Kang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 20 01:07:47 PST 2019


ZhangKang created this revision.
ZhangKang added reviewers: steven.zhang, jsji, llvm-commits, power-llvm-team, echristo, kbarton, hiraditya, nemanjai.
Herald added a project: LLVM.

Fast selection of llvm fptoi & fptrunc instructions is not handled well about VSX instruction support.

We'd use VSX float convert integer instruction instead of non-vsx float convert integer  instruction if the operand register class is VSSRC or VSFRC because i32 and i64 are mapped to VSSRC and VSFRC correspondingly if VSX feature is opened.
For float trunc instruction, we do this silimar work like float convert integer instruction to try to use VSX instruction.


https://reviews.llvm.org/D58430

Files:
  llvm/lib/Target/PowerPC/PPCFastISel.cpp
  llvm/test/CodeGen/PowerPC/fast-isel-rsp.ll
  llvm/test/CodeGen/PowerPC/pr26180.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58430.187526.patch
Type: text/x-patch
Size: 3883 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190220/c4640685/attachment.bin>


More information about the llvm-commits mailing list