[PATCH] D65019: [ARM] push LR before __gnu_mcount_nc on ARM
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 16:06:07 PDT 2019
efriedma added a comment.
> introduce quite some code to the target-independent part of SelectionDAG, specifically SelectionDAGBuilder and SelectionDAG classes
Not sure why you think this would be necessary. Every target has target-specific intrinsics, and we have infrastructure to ensure they don't require any changes to target-independent code.
================
Comment at: llvm/lib/Target/ARM/ARMFastISel.cpp:2417
// Issue the call.
- unsigned CallOpc = ARMSelectCallOp(UseReg);
+ unsigned CallOpc = ARMSelectCallOp(UseReg, Callee && Callee->getName() == "\01__gnu_mcount_nc");
MachineInstrBuilder MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt,
----------------
80 cols
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65019/new/
https://reviews.llvm.org/D65019
More information about the llvm-commits
mailing list