Skip to content

Commit e3d985e

Browse files
committed
fixup! [BOLT][AArch64] Remove assertions from jump table heuristic
1 parent ca6aa8b commit e3d985e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,8 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
901901
// ldr w7, [x6]
902902
// add x6, x6, w7, sxtw => no shift amount
903903
// br x6
904-
dbgs() << "BOLT-DEBUG: "
905-
"failed to match indirect branch: ShiftVAL != 2\n";
904+
LLVM_DEBUG(dbgs() << "BOLT-DEBUG: "
905+
"failed to match indirect branch: ShiftVAL != 2\n");
906906
return false;
907907
}
908908

@@ -953,14 +953,14 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
953953
// adr x12, 0x247b30 <__gettextparse+0x5b0>
954954
// add x13, x12, w13, sxth #2
955955
// br x13
956-
dbgs() << "BOLT-DEBUG: failed to match indirect branch: "
957-
"nop/adr instead of adrp/add\n";
956+
LLVM_DEBUG(dbgs() << "BOLT-DEBUG: failed to match indirect branch: "
957+
"nop/adr instead of adrp/add\n");
958958
return false;
959959
}
960960

961961
if (DefJTBaseAdd->getOpcode() != AArch64::ADDXri) {
962-
dbgs() << "BOLT-DEBUG: "
963-
"failed to match jump table base address pattern! (1)\n";
962+
LLVM_DEBUG(dbgs() << "BOLT-DEBUG: failed to match jump table base "
963+
"address pattern! (1)\n");
964964
return false;
965965
}
966966

0 commit comments

Comments
 (0)