Files
clang-p2996/llvm/test/CodeGen/RISCV
Sam Elliott fe4245a4c1 [RISCV] Implement convertSelectOfConstantsToMath
Summary:
The current lowering of `select` on RISC-V uses a branch instruction to load a
register with one or other value. This is inefficient, especially in the case of
small constants that can be computed easily.

By implementing the TargetLowering::convertSelectOfConstantsToMath hook, some of
the simpler cases are covered that let us avoid introducing a branch in these
cases.

Reviewed By: luismarques

Differential Revision: https://reviews.llvm.org/D79260
2020-05-02 15:05:57 +01:00
..
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00