[PATCH] D84397: [MSP430] Replace known epilogues with branches to __mspabi_func_epilog_N
Anatoly Trosinenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 23 05:22:17 PDT 2020
atrosinenko created this revision.
atrosinenko added reviewers: krisb, pftbest.
Herald added subscribers: hiraditya, mgorny.
Herald added a project: LLVM.
Optimize the size of epilogue sequences by replacing common cases with a single branch to `__mspabi_func_epilog_<N>` function described in MSP430 EABI document <https://www.ti.com/lit/an/slaa534a/slaa534a.pdf>, part 3.8.
As part of that, the patch adjust handling of `MSP430::Bi` instruction.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D84397
Files:
llvm/lib/Target/MSP430/CMakeLists.txt
llvm/lib/Target/MSP430/MSP430.h
llvm/lib/Target/MSP430/MSP430CommonEpilogueOptimizer.cpp
llvm/lib/Target/MSP430/MSP430InstrInfo.cpp
llvm/lib/Target/MSP430/MSP430TargetMachine.cpp
llvm/test/CodeGen/MSP430/asm-clobbers.ll
llvm/test/CodeGen/MSP430/mspabi-func-epilog-multi-terminators.mir
llvm/test/CodeGen/MSP430/mspabi-func-epilog-special-cases.ll
llvm/test/CodeGen/MSP430/mspabi-func-epilog.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84397.280079.patch
Type: text/x-patch
Size: 15292 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200723/d42ec929/attachment.bin>
More information about the llvm-commits
mailing list