[llvm] [SimplifyCFG] Preserve common TBAA metadata when hoisting instructions. (PR #97158)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 29 13:33:30 PDT 2024


fhahn wrote:

> This would get automatically handled if it used the actual hoisting logic -- why doesn't it?

Do you mean `hoistCommonCodeFromSuccessors`? The code in `FoldTwoEntryPHINode` hoist any code, not just common code. The current logic however only preserves TBAA metadata across common instructions for now

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


More information about the llvm-commits mailing list