[RISCV] Introduce pattern for materialising immediates with 0 for lower 12 bits
authorAlex Bradbury <asb@lowrisc.org>
Wed, 18 Apr 2018 20:34:23 +0000 (20:34 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Wed, 18 Apr 2018 20:34:23 +0000 (20:34 +0000)
commit3ff2022bb940237f10584d81da8d21bd62e76c7d
tree41284359b11859abf59ef75e2a3b238a7da3362b
parentf4a3ff008d58fca4031f03644d96a634cd9815ba
[RISCV] Introduce pattern for materialising immediates with 0 for lower 12 bits

These immediates can be materialised with just an lui, rather than an lui+addi
pair.

llvm-svn: 330293
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/test/CodeGen/RISCV/bswap-ctlz-cttz-ctpop.ll
llvm/test/CodeGen/RISCV/calling-conv.ll
llvm/test/CodeGen/RISCV/float-arith.ll
llvm/test/CodeGen/RISCV/imm.ll
llvm/test/CodeGen/RISCV/vararg.ll