[all-commits] [llvm/llvm-project] d6b0c1: [BOLT] Prevent missing ExternalBranch validation (...
Jinjie Huang via All-commits
all-commits at lists.llvm.org
Mon Sep 14 18:29:48 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d6b0c1b9a79d5fdd3d6f94ae36adb266930bd68e
https://github.com/llvm/llvm-project/commit/d6b0c1b9a79d5fdd3d6f94ae36adb266930bd68e
Author: Jinjie Huang <huangjinjie at bytedance.com>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
M bolt/include/bolt/Core/BinaryContext.h
M bolt/include/bolt/Core/BinaryFunction.h
M bolt/lib/Core/BinaryContext.cpp
M bolt/lib/Core/BinaryFunction.cpp
M bolt/test/AArch64/validate-branch-target.s
M bolt/test/X86/validate-branch-target.s
Log Message:
-----------
[BOLT] Prevent missing ExternalBranch validation (#221927)
#165406 introduced validation to check whether a branch target is a
valid instruction to detect corrupted CFGs. However, as described in
[165406#discussion](https://github.com/llvm/llvm-project/pull/165406#discussion_r2601459105),
it can miss validations when a function contains multiple invalid
ExternalBranches.
Therefore, this patch introduces a branch-level set to prevent duplicate
validations while ensuring no branches are missed.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list