Skip to content

Commit 1489021

Browse files
authored
Modify condition to include call instructions
1 parent 957171f commit 1489021

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

llvm/lib/CodeGen/PseudoProbeInserter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class PseudoProbeInserter : public MachineFunctionPass {
5555
for (MachineBasicBlock &MBB : MF) {
5656
MachineInstr *FirstInstr = nullptr;
5757
for (MachineInstr &MI : MBB) {
58-
if (!MI.isPseudo())
58+
if (!MI.isPseudo() || MI.isCall())
5959
FirstInstr = &MI;
6060
if (MI.isCall()) {
6161
if (DILocation *DL = MI.getDebugLoc()) {

0 commit comments

Comments
 (0)