commit | 614fd9d830ce1449d197fb16c4a656e65ca238a2 | [log] [tgz] |
---|---|---|
author | Luis Marques <luismarques@lowrisc.org> | Tue Mar 26 12:55:00 2019 +0000 |
committer | Luis Marques <luismarques@lowrisc.org> | Tue Mar 26 12:55:00 2019 +0000 |
tree | a45e3031a0318b68ac4ce6ac1f1b5e640f4dfe62 | |
parent | e24441aab03e393d591d9252612e8c0ac557b1c3 [diff] |
[RISCV] Improve codegen for icmp {ne,eq} with a constant Adds two patterns to improve the codegen of GPR value comparisons with small constants. Instead of first loading the constant into another register and then doing an XOR of those registers, these patterns directly use the constant as an XORI immediate. llvm-svn: 356990