[all-commits] [llvm/llvm-project] 1b7886: [X32][CET] Fix handling of indirect branches
Harald van Dijk via All-commits
all-commits at lists.llvm.org
Thu Apr 29 00:34:14 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1b788607f549321ef1e8343554b432db07ba3fe6
https://github.com/llvm/llvm-project/commit/1b788607f549321ef1e8343554b432db07ba3fe6
Author: Harald van Dijk <harald at gigawatt.nl>
Date: 2021-04-29 (Thu, 29 Apr 2021)
Changed paths:
M llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
M llvm/test/CodeGen/X86/indirect-branch-tracking.ll
Log Message:
-----------
[X32][CET] Fix handling of indirect branches
As X32 uses 32-bit pointers without having 32-bit indirect branch
instructions, we need to fix up indirect branches by extending the
branch targets to 64 bits. This was already done for BRIND but not yet
for NT_BRIND. The same logic works for both, so this applies that
existing logic to NT_BRIND as well.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D101499
More information about the All-commits
mailing list