diff options
author | Koakuma <koachan@protonmail.com> | 2022-12-13 17:25:42 -0500 |
---|---|---|
committer | Brad Smith <brad@comstyle.com> | 2022-12-13 17:25:42 -0500 |
commit | eaade37fddec5439f58587347ad7c463f7a41400 (patch) | |
tree | 12e60bd4e061bef5c377a3d13468f7759689e34d /llvm/lib/Object/MachOObjectFile.cpp | |
parent | d38d6065584ee5dd837e9a629f90c731d8a7dffc (diff) | |
download | llvm-eaade37fddec5439f58587347ad7c463f7a41400.zip llvm-eaade37fddec5439f58587347ad7c463f7a41400.tar.gz llvm-eaade37fddec5439f58587347ad7c463f7a41400.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/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions