Skip to content

Intervals are overlapping #101859

@dianqk

Description

@dianqk

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!

https://llvm.godbolt.org/z/33nd1fxnv

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions