[all-commits] [llvm/llvm-project] 4d7880: [InferAlignment] Fix updating alignment when large...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Mon Sep 22 07:25:02 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4d7880129bcccf76816078d976de9282c7d5aac8
https://github.com/llvm/llvm-project/commit/4d7880129bcccf76816078d976de9282c7d5aac8
Author: Joseph Huber <huberjn at outlook.com>
Date: 2025-09-22 (Mon, 22 Sep 2025)
Changed paths:
M llvm/lib/Transforms/Scalar/InferAlignment.cpp
M llvm/test/Transforms/InferAlignment/masked.ll
Log Message:
-----------
[InferAlignment] Fix updating alignment when larger than i32 (#160109)
Summary:
The changes made in https://github.com/llvm/llvm-project/pull/156057
allows the alignment value to be increased. We assert effectively
infinite alignment when the pointer argument is invalid / null. The
problem is that for whatever reason the masked load / store functions
use i32 for their alignment value which means this gets truncated to
zero.
Add a special check for this, long term we probably want to just remove
this argument entirely.
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