[llvm] [llvm] Win x64 Unwind V2 1/n: Mark beginning and end of epilogs (PR #110024)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 15:30:28 PDT 2024


================
@@ -178,12 +188,16 @@ define i32 @loopInfoSaveOutsideLoop2(i32 %cond, i32 %N) #0 {
 ; DISABLE-NEXT:    nop
 ; DISABLE-NEXT:    #NO_APP
 ; DISABLE-NEXT:    shll $3, %eax
-; DISABLE-NEXT:    jmp .LBB1_5
-; DISABLE-NEXT:  .LBB1_4: # %if.else
+; DISABLE-NEXT:    .seh_startepilogue
+; DISABLE-NEXT:    popq %rbx
+; DISABLE-NEXT:    .seh_endepilogue
+; DISABLE-NEXT:    retq
+; DISABLE-NEXT:  .LBB1_5: # %if.else
 ; DISABLE-NEXT:    addl %edx, %edx
 ; DISABLE-NEXT:    movl %edx, %eax
-; DISABLE-NEXT:  .LBB1_5: # %if.end
----------------
efriedma-quic wrote:

If it's just the addition of isMeta to seh_epilogue that's causing this, please separate that out into its own patch.

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


More information about the llvm-commits mailing list