mtrofin wrote:
> The test says:
>
> ```llvm
> ; Don't crash processing degenerate metadata.
>
> define void @or_icmps_empty_metadata(i32 %x, i32 %y, ptr %p) {
> ```
>
> So I believe the intention here is specifically to test this degenerate
> situation of 0, 0 branch weights.
>
> Possibly these should be rejected by the verifier? If that were the case,
> there would be no need to test them here.
Yup, and there's another test that I've been looking at that is about all-zero
branch weights. I think a different fix is necessary than the one here. I'll
mark this 'draft' for now.
https://github.com/llvm/llvm-project/pull/160629
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits