summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/old-aliases.ll
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-07-29 23:06:14 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-07-29 23:06:14 +0000
commit1d501e8f46ccea5efa8bdb2833f6b4fc2f48f047 (patch)
tree8f7c93c248bf4f45ccc8c7d831fbd8f1bc1428fd /llvm/test/Bitcode/old-aliases.ll
parent2e6a87b2816edb04819f2e02a1674677596f6087 (diff)
downloadbcm5719-llvm-1d501e8f46ccea5efa8bdb2833f6b4fc2f48f047.tar.gz
bcm5719-llvm-1d501e8f46ccea5efa8bdb2833f6b4fc2f48f047.zip
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. llvm-svn: 214242
Diffstat (limited to 'llvm/test/Bitcode/old-aliases.ll')
-rw-r--r--llvm/test/Bitcode/old-aliases.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/old-aliases.ll b/llvm/test/Bitcode/old-aliases.ll
index 7a0eea2f3f2..13b6d3efa23 100644
--- a/llvm/test/Bitcode/old-aliases.ll
+++ b/llvm/test/Bitcode/old-aliases.ll
@@ -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.
OpenPOWER on IntegriCloud