diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-04-11 14:29:01 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-04-11 14:38:39 -0700 |
commit | 2ce25628760ab2bbab764fc48c086704b4d6e279 (patch) | |
tree | 091ea4b520ec23fa9db53f2be83b80758ac52774 /clang/lib/Basic/FileManager.cpp | |
parent | 5c6db1dc9b839b2e37c115c12fb1aed0bc877671 (diff) | |
download | llvm-2ce25628760ab2bbab764fc48c086704b4d6e279.zip llvm-2ce25628760ab2bbab764fc48c086704b4d6e279.tar.gz llvm-2ce25628760ab2bbab764fc48c086704b4d6e279.tar.bz2 |
[RISCV][SelectionDAG] Add a hook to sign extend i32 ConstantInt operands of phis on RV64.
Materializing constants on RISCV is simpler if the constant is sign
extended from i32. By default i32 constant operands of phis are
zero extended.
This patch adds a hook to allow RISCV to override this for i32. We
have an existing isSExtCheaperThanZExt, but it operates on EVT which
we don't have at these places in the code.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D122951
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions