[llvm] [PredicateInfo] Reformat PT_Switch's annotation as valid comments (PR #165249)

Kunqiu Chen via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 27 07:41:54 PDT 2025


Camsyn wrote:

> Hm, I'm not sure it really makes sense to print the full switch here in the first place. Can we just drop this? The printed edge already identifies this uniquely.


I print the complete `switch` just following previous semantics (maybe because `PT_Assume`/`PT_Branch` can print meaningful icmp `Condition` for diagnostics, while `PT_Switch`'s integer `Condition` is meaningless for diagnostics. 

I think it's okay to eliminate such printing.

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


More information about the llvm-commits mailing list