2019-08-16 01:47:44 +08:00
|
|
|
; RUN: llvm-as %s -o %t.bc
|
2022-04-08 16:54:20 +08:00
|
|
|
; RUN: llvm-lto2 run -r=%t.bc,foo,pxl --print-before-all %t.bc -o %t2 2>&1 | FileCheck %s --check-prefix=CHECK-BEFORE
|
|
|
|
; RUN: llvm-lto2 run -r=%t.bc,foo,pxl --print-after-all %t.bc -o %t3 2>&1 | FileCheck %s --check-prefix=CHECK-AFTER
|
2021-04-15 05:52:50 +08:00
|
|
|
; CHECK-BEFORE: *** IR Dump Before GlobalDCEPass
|
|
|
|
; CHECK-AFTER: *** IR Dump After GlobalDCEPass
|
2019-08-16 01:47:44 +08:00
|
|
|
|
2019-08-28 09:55:06 +08:00
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
2019-08-16 01:47:44 +08:00
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
|
|
|
|
define i32 @foo() {
|
|
|
|
ret i32 42
|
|
|
|
}
|