[llvm] [InstCombine] Preserve all load metadata when folding load of select (PR #206663)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 00:00:48 PDT 2026


nikic wrote:

!prof cannot occur on loads, !fpmath is not meaningful. I guess mem_cache_hint and annotation are potentially reasonable to retain. If we want to do that, I think we should do it by first copying all metadata and then calling dropUBImplyingAttrsAndMetadata.

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


More information about the llvm-commits mailing list