diff options
author | Alex Bradbury <asb@lowrisc.org> | 2017-11-21 07:51:32 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2017-11-21 07:51:32 +0000 |
commit | 65385167fbb4d30fcdddf54102b08fcb1b497fed (patch) | |
tree | 4fea586b3edb7cc795b3934f08326e7d500343aa /llvm/lib/Target/BPF/Disassembler/BPFDisassembler.cpp | |
parent | 364f11cdd3f7cbb68d77ebf07eace2b26a786119 (diff) | |
download | bcm5719-llvm-65385167fbb4d30fcdddf54102b08fcb1b497fed.tar.gz bcm5719-llvm-65385167fbb4d30fcdddf54102b08fcb1b497fed.zip |
[RISCV] Implement lowering of ISD::SELECT
Although ISD::SELECT_CC is a more natural match for RISCVISD::SELECT_CC (and
ultimately the integer RISC-V conditional branch instructions), we choose to
expand ISD::SELECT_CC and lower ISD::SELECT. The appropriate compare+branch
will be created in the case where an ISD::SELECT condition value is created by
an ISD::SETCC node, which operates on XLen types. Other datatypes such as
floating point don't have conditional branch instructions, and lowering
ISD::SELECT allows more flexibility for handling these cases.
Differential Revision: https://reviews.llvm.org/D29937
llvm-svn: 318735
Diffstat (limited to 'llvm/lib/Target/BPF/Disassembler/BPFDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions