-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X86] Preserve more liveness information in emitStackProbeInline
This commit fixes two issues with the liveness information after the call: 1) The code always spills RCX and RDX if InProlog == true, which results in an use of undefined phys reg. 2) FinalReg, JoinReg, RoundedReg, SizeReg are not added as live-ins to the basic blocks that use them, therefore they are seen undefined. https://llvm.org/PR38376 Differential Revision: https://reviews.llvm.org/D50020 llvm-svn: 338400
- Loading branch information
Showing
3 changed files
with
61 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# RUN: llc -verify-machineinstrs %s -run-pass prologepilog -mtriple=x86_64-pc-win32-coreclr -o - | FileCheck %s | ||
... | ||
--- | ||
name: main4k | ||
# CHECK-LABEL: name: main4k | ||
|
||
alignment: 4 | ||
tracksRegLiveness: true | ||
frameInfo: | ||
maxAlignment: 8 | ||
stack: | ||
- { id: 0, size: 4096, alignment: 1, stack-id: 0 } | ||
body: | | ||
bb.0.entry: | ||
$eax = IMPLICIT_DEF | ||
RET 0, killed $eax | ||
; CHECK: bb.1.entry: | ||
; CHECK: liveins: $rdx | ||
; CHECK: bb.2.entry: | ||
; CHECK: liveins: $rcx, $rdx | ||
; CHECK: bb.3.entry: | ||
; CHECK: liveins: $rax | ||
... |