Skip to content

Commit 962f3e4

Browse files
author
Sumanth Gundapaneni
authored
[Hexagon] Use the correct call to detect debug instructions (#83373)
1 parent 58e476f commit 962f3e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Target/Hexagon/HexagonBitSimplify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ namespace {
10021002
bool DeadCodeElimination::isDead(unsigned R) const {
10031003
for (const MachineOperand &MO : MRI.use_operands(R)) {
10041004
const MachineInstr *UseI = MO.getParent();
1005-
if (UseI->isDebugValue())
1005+
if (UseI->isDebugInstr())
10061006
continue;
10071007
if (UseI->isPHI()) {
10081008
assert(!UseI->getOperand(0).getSubReg());

llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ void HexagonPacketizerList::unpacketizeSoloInstrs(MachineFunction &MF) {
11801180
bool InsertBeforeBundle;
11811181
if (MI.isInlineAsm())
11821182
InsertBeforeBundle = !hasWriteToReadDep(MI, *BundleIt, HRI);
1183-
else if (MI.isDebugValue())
1183+
else if (MI.isDebugInstr())
11841184
InsertBeforeBundle = true;
11851185
else
11861186
continue;

0 commit comments

Comments
 (0)