[llvm-branch-commits] [llvm] [sroa][profcheck] Vector selects have "unknown" branch weights (PR #163319)

Aiden Grossman via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Oct 14 08:18:39 PDT 2025


https://github.com/boomanaiden154 commented:

> what's the guidance here - the undef is pre-existing. (Happy to patch, too, in a separate PR, but looking for guidance first)

Nuno added that check a while ago and it's not super high fidelity. Might be good to file an issue about the check...

It should be fine here because it's `undef` produced by an optimization specifically because the test is loading from uninitialized memory rather than someone using `undef` within a test as a dummy value. Not sure whether or not it's better to patch to remove the uninitialized memory load.

https://github.com/llvm/llvm-project/pull/163319


More information about the llvm-branch-commits mailing list