]> granicus.if.org Git - llvm/commit
[ARM] push LR before __gnu_mcount_nc
authorJian Cai <caij2003@gmail.com>
Fri, 16 Aug 2019 20:21:08 +0000 (20:21 +0000)
committerJian Cai <caij2003@gmail.com>
Fri, 16 Aug 2019 20:21:08 +0000 (20:21 +0000)
commit21bc3fbc64f9c715212cca21ef4f8f817799b0da
tree2bb170a65258116ace9e7b832c623a3611240ed3
parent1b82a898f64457e3baba40e478d227328f0ce927
[ARM] push LR before __gnu_mcount_nc

Push LR register before calling __gnu_mcount_nc as it expects the value of LR register to be the top value of
the stack on ARM32.

Differential Revision: https://reviews.llvm.org/D65019

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369147 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsARM.td
lib/Target/ARM/ARMExpandPseudoInsts.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMISelLowering.h
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb.td
lib/Transforms/Utils/EntryExitInstrumenter.cpp
test/CodeGen/ARM/gnu_mcount_nc.ll [new file with mode: 0644]