diff options
author | Alex Bradbury <asb@lowrisc.org> | 2017-11-21 08:23:08 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2017-11-21 08:23:08 +0000 |
commit | 0c7b3643f715b1c2920331b43aca94997b58681d (patch) | |
tree | 53e21f5bd97ea3d808320244fce4a769a936309c /llvm/lib/Object/ELF.cpp | |
parent | ffc435e9c78e61f3ce7213840021300a06a984e7 (diff) | |
download | bcm5719-llvm-0c7b3643f715b1c2920331b43aca94997b58681d.tar.gz bcm5719-llvm-0c7b3643f715b1c2920331b43aca94997b58681d.zip |
[RISCV] Use register X0 (ZERO) for constant 0
The obvious approach of defining a pattern like the one below actually doesn't
work:
`def : Pat<(i32 0), (i32 X0)>;`
As was noted when Lanai made this change (https://reviews.llvm.org/rL288215),
attempting to handle the constant 0 in tablegen leads to assertions due to a
physical register being used where a virtual register is expected.
llvm-svn: 318738
Diffstat (limited to 'llvm/lib/Object/ELF.cpp')
0 files changed, 0 insertions, 0 deletions