You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[WIP] Use assume rather than range metadata
Fixesrust-lang#122726.
Currently, range can only be used in load, call and invoke instructions. Due to SROA being run before other passes, even in the simplest IR, LLVM cannot infer that `%i1` is 0.
```llvm
define noundef i32 `@src(i32` noundef %arg) {
%i = alloca i32, align 4
store i32 %arg, ptr %i, align 4
%i1 = load i32, ptr %i, align 4, !range !0
ret i32 %i1
}
```
https://alive2.llvm.org/ce/z/MjsH9b
r? `@ghost`
0 commit comments