[llvm] r214243 - UseListOrder: Additional test coverage for r214242

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Jul 29 16:15:50 PDT 2014


Author: dexonsmith
Date: Tue Jul 29 18:15:49 2014
New Revision: 214243

URL: http://llvm.org/viewvc/llvm-project?rev=214243&view=rev
Log:
UseListOrder: Additional test coverage for r214242

r214242 was subtle enough it really deserves a targeted test with
comments.  This adds some global variables that trigger the relevant
code path.  Sorry this wasn't committed with the fix.

Modified:
    llvm/trunk/test/Bitcode/use-list-order.ll

Modified: llvm/trunk/test/Bitcode/use-list-order.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/use-list-order.ll?rev=214243&r1=214242&r2=214243&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/use-list-order.ll (original)
+++ llvm/trunk/test/Bitcode/use-list-order.ll Tue Jul 29 18:15:49 2014
@@ -3,6 +3,20 @@
 @a = global [4 x i1] [i1 0, i1 1, i1 0, i1 1]
 @b = alias i1* getelementptr ([4 x i1]* @a, i64 0, i64 2)
 
+; Check use-list order of constants used by globals.
+ at glob1 = global i5 7
+ at glob2 = global i5 7
+ at glob3 = global i5 7
+
+; Check use-list order between variables and aliases.
+ at target = global i3 zeroinitializer
+ at alias1 = alias i3* @target
+ at alias2 = alias i3* @target
+ at alias3 = alias i3* @target
+ at var1 = global i3* @target
+ at var2 = global i3* @target
+ at var3 = global i3* @target
+
 define i64 @f(i64 %f) {
 entry:
   %sum = add i64 %f, 0





More information about the llvm-commits mailing list