[RISCV] Teach RISCVMatInt to prefer li+slli over lui+addi(w) for compressibility.
With C extension, li with a 6 bit immediate followed by slli is 4 bytes. The lui+addi(w) sequence is at least 6 bytes. The two sequences probably have similar execution latency. The exception being if the target supports lui+addi(w) macrofusion. Since the execution latency is probably the same I didn't restrict this to C extension. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D139135
Loading
Please sign in to comment