[llvm] [LoopVectorize] Don't replicate blocks with optsize (PR #129265)

John Brawn via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 07:37:55 PDT 2025


================
@@ -1035,58 +1035,59 @@ exit:
 
 ; Test case with a dead GEP between the load and store regions. Dead recipes
 ; need to be removed before merging.
-define void @merge_with_dead_gep_between_regions(i32 %n, ptr noalias %src, ptr noalias %dst) optsize {
+define void @merge_with_dead_gep_between_regions(i32 %n, ptr noalias %src, ptr noalias %dst) {
----------------
john-brawn-arm wrote:

It looks like putting the contents of the loop in a if-block works (I dumped the vplan at the start and end of mergeReplicateRegionsIntoSuccessors and initially there's two replicate regions that then get merged into one).

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


More information about the llvm-commits mailing list