diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-03-18 18:33:30 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-03-19 18:43:14 -0700 |
commit | 4eb59f017903c8b70b5c5aad892bdc73516a6766 (patch) | |
tree | 8aa26511e7dfad1931bb31e2d87c387151bf7ef0 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 268371cf7b9f6fd3b9320564f1abd3615eecd2e8 (diff) | |
download | llvm-4eb59f017903c8b70b5c5aad892bdc73516a6766.zip llvm-4eb59f017903c8b70b5c5aad892bdc73516a6766.tar.gz llvm-4eb59f017903c8b70b5c5aad892bdc73516a6766.tar.bz2 |
[SelectionDAG][RISCV] Make RegsForValue::getCopyToRegs explicitly zero_extend constants.
ComputePHILiveOutRegInfo assumes that constant incoming values to
Phis will be zero extended if they aren't a legal type. To guarantee
that we should zero_extend rather than any_extend constants.
This fixes a bug for RISCV where any_extend of constants can be
treated as a sign_extend.
Differential Revision: https://reviews.llvm.org/D122053
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions