diff options
author | Craig Topper <craig.topper@sifive.com> | 2023-09-22 15:41:18 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2023-09-22 17:04:11 -0700 |
commit | 972df2ceccbafe0cc8d1a79d08533b623a5640ab (patch) | |
tree | 5d91710923cf43dd3d0d97e6422d324a12cb3016 /llvm/lib/CodeGen/MachineCopyPropagation.cpp | |
parent | 7cd01afb73a2b88ab410404932ebdaf04becd883 (diff) | |
download | llvm-972df2ceccbafe0cc8d1a79d08533b623a5640ab.zip llvm-972df2ceccbafe0cc8d1a79d08533b623a5640ab.tar.gz llvm-972df2ceccbafe0cc8d1a79d08533b623a5640ab.tar.bz2 |
[RISCV][GISel] Emit G_CONSTANT 0 as a copy from X0. (#67202)
We need to use a COPY so the register coalescer can replace reads
of the register we copy to with X0. This is needed so that we use
X0 on instructions that don't have an immediate form.
This was reviewed as #67202.
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
0 files changed, 0 insertions, 0 deletions