mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
UseListOrder: Order GlobalValue uses after initializers
To avoid unnecessary forward references, the reader doesn't process initializers of `GlobalValue`s until after the constant pool has been processed, and then in reverse order. Model this when predicting use-list order. This gets two more Bitcode tests passing with `llvm-uselistorder`. Part of PR5680. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214242 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
; RUN: llvm-dis < %s.bc | FileCheck %s
|
||||
; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
|
||||
|
||||
; local-linkage-default-visibility.3.4.ll.bc was generated by passing this file
|
||||
; to llvm-as-3.4. The test checks that LLVM upgrades visibility of symbols
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llvm-dis < %s.bc | FileCheck %s
|
||||
; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
|
||||
|
||||
; old-aliases.bc consist of this file assembled with an old llvm-as (3.5 trunk)
|
||||
; from when aliases contained a ConstantExpr.
|
||||
|
Reference in New Issue
Block a user