]> granicus.if.org Git - llvm/commit
[RISCV] Allow conversion of CC logic to bitwise logic
authorAlex Bradbury <asb@lowrisc.org>
Fri, 22 Mar 2019 10:39:22 +0000 (10:39 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Fri, 22 Mar 2019 10:39:22 +0000 (10:39 +0000)
commit9ac8aecbf9dc032fa7f3f9de4724e41b2e0920a9
treefe25d7653064ae39e7ced06178c635729ad69db8
parent3cf84d2ef25860cc8175a30c1209bb664bd9be11
[RISCV] Allow conversion of CC logic to bitwise logic

Indicates in the TargetLowering interface that conversions from CC logic to
bitwise logic are allowed. Adds tests that show the benefit when optimization
opportunities are detected. Also adds tests that show that when the optimization
is not applied correct code is generated (but opportunities for other
optimizations remain).

Differential Revision: https://reviews.llvm.org/D59596
Patch by Luís Marques.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356740 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/RISCVISelLowering.h
test/CodeGen/RISCV/setcc-logic.ll [new file with mode: 0644]