[llvm-branch-commits] [llvm] CodeGen: Introduce MachineFunction::getPreferredAlignment(). (PR #158368)
Peter Collingbourne via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jan 27 11:02:53 PST 2026
================
@@ -26,7 +26,7 @@ entry:
declare signext i32 @do_something(ptr)
; CHECK: name: test
-; CHECK: alignment: 16
+; CHECK: alignment: 4
----------------
pcc wrote:
Most targets do it by checking for `.align` family directives in the asm output. You can find some examples by e.g. grepping for `.p2align` in the tests.
https://github.com/llvm/llvm-project/pull/158368
More information about the llvm-branch-commits
mailing list