mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
fdb0c0cbf7
3d4f3a0da90bd1a3 (https://reviews.llvm.org/D20586) avoided rescheduling a global value that was materialized first through a regular value, and then again through an alias. This commit catches the dual, avoiding rescheduling when the global value is first materialized through an alias. Differential Revision: https://reviews.llvm.org/D101419 Radar-Id: rdar://75752728
13 lines
399 B
LLVM
13 lines
399 B
LLVM
; RUN: llvm-link %s -S -o - | FileCheck %s
|
|
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-apple-macosx10.9"
|
|
|
|
; CHECK-DAG: @gv0 = constant i64* @alias
|
|
; CHECK-DAG: @gv1 = constant i64 ptrtoint (i64* @gv1 to i64)
|
|
; CHECK-DAG: @alias = alias i64, i64* @gv1
|
|
|
|
@gv0 = constant i64* @alias
|
|
@gv1 = constant i64 ptrtoint (i64* @gv1 to i64)
|
|
|
|
@alias = alias i64, i64* @gv1
|