diff options
author | Zi Xuan Wu <wuzish@cn.ibm.com> | 2019-01-25 07:24:59 +0000 |
---|---|---|
committer | Zi Xuan Wu <wuzish@cn.ibm.com> | 2019-01-25 07:24:59 +0000 |
commit | 308a609c6ee984414f68f1e106cdc1aab5f14277 (patch) | |
tree | 9a29a0f9427a65b6bd68b84f1df84a02a2e36b9c /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 8de5abc4c880bdbafdd16ee9d2ba3ea35b03fe7c (diff) | |
download | llvm-308a609c6ee984414f68f1e106cdc1aab5f14277.zip llvm-308a609c6ee984414f68f1e106cdc1aab5f14277.tar.gz llvm-308a609c6ee984414f68f1e106cdc1aab5f14277.tar.bz2 |
[PowerPC] Enhance the fast selection of cmp instruction and clean up related asserts
Fast selection of llvm icmp and fcmp instructions is not handled well about VSX instruction support.
We'd use VSX float comparison instruction instead of non-vsx float comparison 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.
If the target does not have corresponding VSX instruction comparison for some type,
just copy VSX-related register to common float register class and use non-vsx comparison instruction.
Differential Revision: https://reviews.llvm.org/D57078
llvm-svn: 352174
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions