[all-commits] [llvm/llvm-project] 5932f7: [PatchableFunction] Use an empty DebugLoc
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sat Feb 1 14:12:26 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 5932f7b8f2c9a5f3640cffa3e99a45923acb7201
https://github.com/llvm/llvm-project/commit/5932f7b8f2c9a5f3640cffa3e99a45923acb7201
Author: Fangrui Song <maskray at google.com>
Date: 2020-02-01 (Sat, 01 Feb 2020)
Changed paths:
M llvm/lib/CodeGen/PatchableFunction.cpp
M llvm/test/CodeGen/AArch64/patchable-function-entry-empty.mir
Log Message:
-----------
[PatchableFunction] Use an empty DebugLoc
The current FirstMI.getDebugLoc() is actually null in almost all cases.
If it isn't, the generated .loc will be considered initial. The .loc
will have the prologue_end flag and terminate the prologue prematurely.
Also use an overload of BuildMI that will not prepend
PATCHABLE_FUNCTION_ENTRY to a MachineInstr bundle.
More information about the All-commits
mailing list