[PATCH] D68390: [Mips] Emit proper ABI for _mcount calls
Mirko Brkusanin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 3 06:32:38 PDT 2019
mbrkusanin created this revision.
mbrkusanin added reviewers: petarj, mstojanovic, atanasyan, sdardis.
mbrkusanin added a project: LLVM.
Herald added a subscriber: arichardson.
When -pg option is present than a call to _mcount is inserted into every
function. However since the proper ABI was not followed then the generated
gmon.out did not give proper results. By inserting needed instructions before
every _mcount we can fix this.
https://reviews.llvm.org/D68390
Files:
lib/Target/Mips/MipsSEISelDAGToDAG.cpp
lib/Target/Mips/MipsSEISelDAGToDAG.h
test/CodeGen/Mips/mcount.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68390.223002.patch
Type: text/x-patch
Size: 7871 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191003/86fa8ec4/attachment.bin>
More information about the llvm-commits
mailing list