- 
                Notifications
    You must be signed in to change notification settings 
- Fork 15k
Closed
Labels
Description
I tried the following IR:
define i8 @foo(ptr %arg, i8 %arg1) {
bb:
  %i = load i8, ptr %arg, align 1, !range !{i8 127, i8 -20}
  %i2 = load i8, ptr %arg, align 1, !range !{i8 -27, i8 -24, i8 -20, i8 -17}
  %i3 = add i8 %i, %i2
  ret i8 %i3
}I expected a successful optimization, but I encountered a validation error:
Intervals are overlapping
!0 = !{i8 -27, i8 -24, i8 127, i8 -17}
LLVM ERROR: Broken module found, compilation aborted!