]> granicus.if.org Git - llvm/commit
[RISCV] Add seto pattern expansion
authorLuis Marques <luismarques@lowrisc.org>
Mon, 1 Apr 2019 09:54:14 +0000 (09:54 +0000)
committerLuis Marques <luismarques@lowrisc.org>
Mon, 1 Apr 2019 09:54:14 +0000 (09:54 +0000)
commit6bc72be0f5a095478f0f01049fbaae548fe68f02
treef4620362d9ff9c5875c5fa62b47d03a159b95aee
parentd5ac9266f65da18f8d68a85b1aaf031f1bc26da7
[RISCV] Add seto pattern expansion

Adds a `seto` pattern expansion. Without it the lowerings of `fcmp one` and
`fcmp ord` would be inefficient due to an unoptimized double negation.

Differential Revision: https://reviews.llvm.org/D59699

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357378 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/RISCVISelLowering.cpp
lib/Target/RISCV/RISCVInstrInfoD.td
lib/Target/RISCV/RISCVInstrInfoF.td
test/CodeGen/RISCV/double-br-fcmp.ll
test/CodeGen/RISCV/double-fcmp.ll
test/CodeGen/RISCV/double-select-fcmp.ll
test/CodeGen/RISCV/float-br-fcmp.ll
test/CodeGen/RISCV/float-fcmp.ll
test/CodeGen/RISCV/float-select-fcmp.ll