mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
cc216023c0
The problem was that I slipped a change required for shrink-wrapping, namely I used getFirstTerminator instead of the getLastNonDebugInstr that was here before the refactoring, whereas the surrounding code is not yet patched for that. Original message: [X86] Refactor the prologue emission to prepare for shrink-wrapping. - Add a late pass to expand pseudo instructions (tail call and EH returns). Instead of doing it in the prologue emission. - Factor some static methods in X86FrameLowering to ease code sharing. NFC. Related to <rdar://problem/20821487> llvm-svn: 238035
16 lines
319 B
LLVM
16 lines
319 B
LLVM
; RUN: llc %s -o - | FileCheck %s
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
; CHECK-LABEL: bar:
|
|
; CHECK: ud2
|
|
; CHECK-NEXT: retq
|
|
define void @bar() {
|
|
entry:
|
|
call void @llvm.trap()
|
|
ret void
|
|
}
|
|
|
|
; Function Attrs: noreturn nounwind
|
|
declare void @llvm.trap()
|