[PATCH] D138887: [SPARC] Mark the %g0 register as constant & use it to materialize zeros
Koakuma via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 29 05:45:49 PST 2022
koakuma updated this revision to Diff 478543.
koakuma added a comment.
- Mark i64 zero materialization as for 64-bit target only.
- Use ORrr instead of the default COPY to zero the upper half of a register pair. Using COPY there will result in LLVM changing the `COPY G0` operation to a `COPY G0_G1` operation, which is not what we want in this case. Note that in all other cases turning `COPY G0` to `COPY G0_G1` is the right thing to do; zeroing is simply an exception to that rule.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138887/new/
https://reviews.llvm.org/D138887
Files:
llvm/lib/Target/Sparc/SparcInstr64Bit.td
llvm/lib/Target/Sparc/SparcInstrInfo.td
llvm/lib/Target/Sparc/SparcRegisterInfo.td
llvm/test/CodeGen/SPARC/64bit.ll
llvm/test/CodeGen/SPARC/64cond.ll
llvm/test/CodeGen/SPARC/atomics.ll
llvm/test/CodeGen/SPARC/bigreturn.ll
llvm/test/CodeGen/SPARC/cttz.ll
llvm/test/CodeGen/SPARC/float-constants.ll
llvm/test/CodeGen/SPARC/fshl.ll
llvm/test/CodeGen/SPARC/inlineasm.ll
llvm/test/CodeGen/SPARC/missinglabel.ll
llvm/test/CodeGen/SPARC/smulo-128-legalisation-lowering.ll
llvm/test/CodeGen/SPARC/tailcall.ll
llvm/test/CodeGen/SPARC/umulo-128-legalisation-lowering.ll
llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/sparc_generated_funcs.ll.generated.expected
llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/sparc_generated_funcs.ll.nogenerated.expected
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138887.478543.patch
Type: text/x-patch
Size: 39783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221129/a022b429/attachment-0001.bin>
More information about the llvm-commits
mailing list