diff options
author | Koakuma <koachan@protonmail.com> | 2022-12-07 13:25:38 -0500 |
---|---|---|
committer | Brad Smith <brad@comstyle.com> | 2022-12-07 13:34:13 -0500 |
commit | 2c41310fc146a1f609147c65ac5f30e5a57e84a8 (patch) | |
tree | 4cb3e85449ea5bcd1f3dadc637d57caf8f03f646 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | |
parent | bbfbec94b10699d473c106d85d5a48ff5d69e721 (diff) | |
download | llvm-2c41310fc146a1f609147c65ac5f30e5a57e84a8.zip llvm-2c41310fc146a1f609147c65ac5f30e5a57e84a8.tar.gz llvm-2c41310fc146a1f609147c65ac5f30e5a57e84a8.tar.bz2 |
[SPARC] Mark the %g0 register as constant & use it to materialize zeros
Materialize zeros by copying from %g0, which is now marked as constant.
This makes it possible for some common operations (like integer negation) to be
performed in fewer instructions.
This continues @arichardson's patch at D132561.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D138887
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions