summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/ELF.cpp
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2017-11-21 08:23:08 +0000
committerAlex Bradbury <asb@lowrisc.org>2017-11-21 08:23:08 +0000
commit0c7b3643f715b1c2920331b43aca94997b58681d (patch)
tree53e21f5bd97ea3d808320244fce4a769a936309c /llvm/lib/Object/ELF.cpp
parentffc435e9c78e61f3ce7213840021300a06a984e7 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud