llvm-project
86a679fb - [BasicAA] Require a precise size in the errno size rule (#248308)

Commit
19 hours ago
[BasicAA] Require a precise size in the errno size rule (#248308) `aliasErrno()` returns `NoAlias` when the location is larger than an `int`, checking only `Loc.Size.hasValue()`. That is also true for an upper-bound size, which does not give the size of the access: a masked load of `<4 x i32>` with only lane 0 enabled has location size `upperBound(16)` but reads 4 bytes, which may be errno. GVN then forwards a load of errno across a call that writes it. Require `Loc.Size.isPrecise()` instead. Fixes #248307. Assisted-by: Claude Code
Author
Parents
Loading