mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
b259c5545e
Summary: In r345197 ESP and RSP were added to GR32_TC/GR64_TC, allowing them to be used for tail calls, but this also caused `findDeadCallerSavedReg` to think they were acceptable targets for clobbering. Filter them out. Fixes PR40289. Patch by Geoffry Song! Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D56617 llvm-svn: 351146
11 lines
248 B
LLVM
11 lines
248 B
LLVM
; RUN: llc < %s -mtriple=i686-pc-windows-msvc | FileCheck %s
|
|
|
|
define < 3 x i32 > @clobber() {
|
|
%1 = alloca i32
|
|
%2 = load volatile i32, i32* %1
|
|
ret < 3 x i32 > undef
|
|
; CHECK-LABEL: clobber:
|
|
; CHECK-NOT: popl %esp
|
|
; CHECK: addl $4, %esp
|
|
}
|