Issue 237839
Summary llubi accepts irr_loop metadata on a block outside any loop
Labels new issue
Assignees
Reporter Roticv912
    A branch in a function with no loop carries !irr_loop metadata and executes without reporting undefined behavior.

### Program
```llvm
define i32 @main() {
 br label %end, !irr_loop !0
end:
 ret i32 0
}
!0 = !{!"loop_header_weight", i64 100}
```

### Output
```
Entering function: main
  br label %end, !irr_loop !1 jump to %end
  ret i32 0
Exiting function: main
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to