[llvm] StructurizeCFG: Optimize phi insertion during ssa reconstruction (PR #101301)
Sameer Sahasrabuddhe via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 03:12:39 PDT 2024
================
@@ -152,4 +152,87 @@ end:
ret float %r
}
+; Two chains of phi network that have the same value from %if block.
+define amdgpu_ps < 2 x float> @while_break_two_chains_of_phi(float %v, i32 %x, i32 %y, i32 %z, ptr addrspace(1) %p) #0 {
----------------
ssahasra wrote:
This should be copied/moved to test/Transforms/StructurizeCFG to demonstrate the effect in LLVM IR. That was very useful for me to see the optimization working. At least under StructurizeCFG, it does not need to be specific to AMDGPU.
https://github.com/llvm/llvm-project/pull/101301
More information about the llvm-commits
mailing list