[llvm] r214157 - Bitcode: Correctly compare a Use against itself
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Jul 28 18:13:56 PDT 2014
Author: dexonsmith
Date: Mon Jul 28 20:13:56 2014
New Revision: 214157
URL: http://llvm.org/viewvc/llvm-project?rev=214157&view=rev
Log:
Bitcode: Correctly compare a Use against itself
Fix the sort of expected order in the reader to correctly return `false`
when comparing a `Use` against itself.
This was caught by test/Bitcode/binaryIntInstructions.3.2.ll, so I'm
adding a `RUN` line using `llvm-uselistorder` for every test in
`test/Bitcode` that passes.
A few tests still fail, so I'll investigate those next.
This is part of PR5680.
Modified:
llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
llvm/trunk/test/Bitcode/2006-12-11-Cast-ConstExpr.ll
llvm/trunk/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll
llvm/trunk/test/Bitcode/aggregateInstructions.3.2.ll
llvm/trunk/test/Bitcode/arm32_neon_vcnt_upgrade.ll
llvm/trunk/test/Bitcode/atomic.ll
llvm/trunk/test/Bitcode/attributes-3.3.ll
llvm/trunk/test/Bitcode/attributes.ll
llvm/trunk/test/Bitcode/binaryFloatInstructions.3.2.ll
llvm/trunk/test/Bitcode/binaryIntInstructions.3.2.ll
llvm/trunk/test/Bitcode/bitwiseInstructions.3.2.ll
llvm/trunk/test/Bitcode/calling-conventions.3.2.ll
llvm/trunk/test/Bitcode/case-ranges-3.3.ll
llvm/trunk/test/Bitcode/cmpxchg-upgrade.ll
llvm/trunk/test/Bitcode/conversionInstructions.3.2.ll
llvm/trunk/test/Bitcode/drop-debug-info.ll
llvm/trunk/test/Bitcode/extractelement.ll
llvm/trunk/test/Bitcode/flags.ll
llvm/trunk/test/Bitcode/function-encoding-rel-operands.ll
llvm/trunk/test/Bitcode/global-variables.3.2.ll
llvm/trunk/test/Bitcode/inalloca.ll
llvm/trunk/test/Bitcode/linkage-types-3.2.ll
llvm/trunk/test/Bitcode/memInstructions.3.2.ll
llvm/trunk/test/Bitcode/metadata.ll
llvm/trunk/test/Bitcode/ptest-new.ll
llvm/trunk/test/Bitcode/ptest-old.ll
llvm/trunk/test/Bitcode/select.ll
llvm/trunk/test/Bitcode/shuffle.ll
llvm/trunk/test/Bitcode/tailcall.ll
llvm/trunk/test/Bitcode/terminatorInstructions.3.2.ll
llvm/trunk/test/Bitcode/upgrade-global-ctors.ll
llvm/trunk/test/Bitcode/upgrade-loop-metadata.ll
llvm/trunk/test/Bitcode/upgrade-tbaa.ll
llvm/trunk/test/Bitcode/vectorInstructions.3.2.ll
llvm/trunk/test/Bitcode/visibility-styles.3.2.ll
llvm/trunk/test/Bitcode/weak-cmpxchg-upgrade.ll
Modified: llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp Mon Jul 28 20:13:56 2014
@@ -106,6 +106,9 @@ static void predictValueUseListOrderImpl
[&OM, ID](const Entry &L, const Entry &R) {
const Use *LU = L.first;
const Use *RU = R.first;
+ if (LU == RU)
+ return false;
+
auto LID = OM.lookup(LU->getUser()).first;
auto RID = OM.lookup(RU->getUser()).first;
// If ID is 4, then expect: 7 6 5 1 2 3.
Modified: llvm/trunk/test/Bitcode/2006-12-11-Cast-ConstExpr.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/2006-12-11-Cast-ConstExpr.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/2006-12-11-Cast-ConstExpr.ll (original)
+++ llvm/trunk/test/Bitcode/2006-12-11-Cast-ConstExpr.ll Mon Jul 28 20:13:56 2014
@@ -1,6 +1,7 @@
; This test ensures that we get a bitcast constant expression in and out,
; not a sitofp constant expression.
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
; CHECK: bitcast (
@G = external global i32
Modified: llvm/trunk/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll (original)
+++ llvm/trunk/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llvm-dis -disable-output
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
; PR4373
@foo = weak global { i32 } zeroinitializer
Modified: llvm/trunk/test/Bitcode/aggregateInstructions.3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/aggregateInstructions.3.2.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/aggregateInstructions.3.2.ll (original)
+++ llvm/trunk/test/Bitcode/aggregateInstructions.3.2.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; aggregateOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not misread instructions with aggregate operands
Modified: llvm/trunk/test/Bitcode/arm32_neon_vcnt_upgrade.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/arm32_neon_vcnt_upgrade.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/arm32_neon_vcnt_upgrade.ll (original)
+++ llvm/trunk/test/Bitcode/arm32_neon_vcnt_upgrade.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
; Tests vclz and vcnt
define <4 x i16> @vclz16(<4 x i16>* %A) nounwind {
Modified: llvm/trunk/test/Bitcode/atomic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/atomic.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/atomic.ll (original)
+++ llvm/trunk/test/Bitcode/atomic.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-as %s -o - | llvm-dis | FileCheck %s
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
define void @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) {
cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
Modified: llvm/trunk/test/Bitcode/attributes-3.3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/attributes-3.3.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/attributes-3.3.ll (original)
+++ llvm/trunk/test/Bitcode/attributes-3.3.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; attributes-3.3.ll.bc was generated by passing this file to llvm-as-3.3.
; The test checks that LLVM does not silently misread attributes of
Modified: llvm/trunk/test/Bitcode/attributes.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/attributes.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/attributes.ll (original)
+++ llvm/trunk/test/Bitcode/attributes.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
; PR12696
define void @f1(i8 zeroext)
Modified: llvm/trunk/test/Bitcode/binaryFloatInstructions.3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/binaryFloatInstructions.3.2.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/binaryFloatInstructions.3.2.ll (original)
+++ llvm/trunk/test/Bitcode/binaryFloatInstructions.3.2.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; BinaryFloatOperation.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not misread binary float instructions from
Modified: llvm/trunk/test/Bitcode/binaryIntInstructions.3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/binaryIntInstructions.3.2.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/binaryIntInstructions.3.2.ll (original)
+++ llvm/trunk/test/Bitcode/binaryIntInstructions.3.2.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; BinaryIntOperation.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not misread binary integer instructions from
Modified: llvm/trunk/test/Bitcode/bitwiseInstructions.3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/bitwiseInstructions.3.2.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/bitwiseInstructions.3.2.ll (original)
+++ llvm/trunk/test/Bitcode/bitwiseInstructions.3.2.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; bitwiseOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not misread bitwise instructions from
Modified: llvm/trunk/test/Bitcode/calling-conventions.3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/calling-conventions.3.2.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/calling-conventions.3.2.ll (original)
+++ llvm/trunk/test/Bitcode/calling-conventions.3.2.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; calling-conventions.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not silently misread calling conventions of
Modified: llvm/trunk/test/Bitcode/case-ranges-3.3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/case-ranges-3.3.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/case-ranges-3.3.ll (original)
+++ llvm/trunk/test/Bitcode/case-ranges-3.3.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; case-ranges.ll.bc was generated by passing this file to llvm-as from the 3.3
; release of LLVM. This tests that the bitcode for switches from that release
Modified: llvm/trunk/test/Bitcode/cmpxchg-upgrade.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/cmpxchg-upgrade.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/cmpxchg-upgrade.ll (original)
+++ llvm/trunk/test/Bitcode/cmpxchg-upgrade.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc | FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; cmpxchg-upgrade.ll.bc was produced by running a version of llvm-as from just
; before the IR change on this file.
Modified: llvm/trunk/test/Bitcode/conversionInstructions.3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/conversionInstructions.3.2.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/conversionInstructions.3.2.ll (original)
+++ llvm/trunk/test/Bitcode/conversionInstructions.3.2.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; conversionOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not misread conversion instructions from
Modified: llvm/trunk/test/Bitcode/drop-debug-info.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/drop-debug-info.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/drop-debug-info.ll (original)
+++ llvm/trunk/test/Bitcode/drop-debug-info.ll Mon Jul 28 20:13:56 2014
@@ -1,5 +1,6 @@
; RUN: llvm-as < %s -o %t.bc 2>&1 >/dev/null | FileCheck -check-prefix=WARN %s
; RUN: llvm-dis < %t.bc | FileCheck %s
+; RUN: llvm-uselistorder < %t.bc -preserve-bc-use-list-order -num-shuffles=5
define i32 @main() {
entry:
Modified: llvm/trunk/test/Bitcode/extractelement.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/extractelement.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/extractelement.ll (original)
+++ llvm/trunk/test/Bitcode/extractelement.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: opt < %s -constprop | llvm-dis -disable-output
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
; PR3465
define double @test() {
Modified: llvm/trunk/test/Bitcode/flags.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/flags.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/flags.ll (original)
+++ llvm/trunk/test/Bitcode/flags.ll Mon Jul 28 20:13:56 2014
@@ -1,6 +1,7 @@
; RUN: llvm-as < %s | llvm-dis > %t0
; RUN: opt -S < %s > %t1
; RUN: diff %t0 %t1
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
; PR6140
; Make sure the flags are serialized/deserialized properly for both
Modified: llvm/trunk/test/Bitcode/function-encoding-rel-operands.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/function-encoding-rel-operands.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/function-encoding-rel-operands.ll (original)
+++ llvm/trunk/test/Bitcode/function-encoding-rel-operands.ll Mon Jul 28 20:13:56 2014
@@ -1,6 +1,7 @@
; Basic sanity test to check that instruction operands are encoded with
; relative IDs.
; RUN: llvm-as < %s | llvm-bcanalyzer -dump | FileCheck %s
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
; CHECK: FUNCTION_BLOCK
; CHECK: INST_BINOP {{.*}}op0=1 op1=1
Modified: llvm/trunk/test/Bitcode/global-variables.3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/global-variables.3.2.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/global-variables.3.2.ll (original)
+++ llvm/trunk/test/Bitcode/global-variables.3.2.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; global-variables.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not silently misread global variables attributes of
Modified: llvm/trunk/test/Bitcode/inalloca.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/inalloca.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/inalloca.ll (original)
+++ llvm/trunk/test/Bitcode/inalloca.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
; inalloca should roundtrip.
Modified: llvm/trunk/test/Bitcode/linkage-types-3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/linkage-types-3.2.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/linkage-types-3.2.ll (original)
+++ llvm/trunk/test/Bitcode/linkage-types-3.2.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; linkage-types-3.2.ll.bc was generated by passing this file to llvm-as-3.2
; The test checks that LLVM does not silently misread linkage types of
Modified: llvm/trunk/test/Bitcode/memInstructions.3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/memInstructions.3.2.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/memInstructions.3.2.ll (original)
+++ llvm/trunk/test/Bitcode/memInstructions.3.2.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; memOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not misread memory related instructions of
Modified: llvm/trunk/test/Bitcode/metadata.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/metadata.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/metadata.ll (original)
+++ llvm/trunk/test/Bitcode/metadata.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llvm-dis -disable-output
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
!llvm.foo = !{!0}
!0 = metadata !{i32 42}
Modified: llvm/trunk/test/Bitcode/ptest-new.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/ptest-new.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/ptest-new.ll (original)
+++ llvm/trunk/test/Bitcode/ptest-new.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
define i32 @foo(<2 x i64> %bar) nounwind {
entry:
Modified: llvm/trunk/test/Bitcode/ptest-old.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/ptest-old.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/ptest-old.ll (original)
+++ llvm/trunk/test/Bitcode/ptest-old.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
define i32 @foo(<4 x float> %bar) nounwind {
entry:
Modified: llvm/trunk/test/Bitcode/select.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/select.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/select.ll (original)
+++ llvm/trunk/test/Bitcode/select.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
define <2 x i32> @main() {
ret <2 x i32> select (<2 x i1> <i1 false, i1 undef>, <2 x i32> zeroinitializer, <2 x i32> <i32 0, i32 undef>)
Modified: llvm/trunk/test/Bitcode/shuffle.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/shuffle.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/shuffle.ll (original)
+++ llvm/trunk/test/Bitcode/shuffle.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llvm-dis -disable-output
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
; <rdar://problem/8622574>
; tests the bitcodereader can handle the case where the reader will initially
Modified: llvm/trunk/test/Bitcode/tailcall.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/tailcall.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/tailcall.ll (original)
+++ llvm/trunk/test/Bitcode/tailcall.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
; Check that musttail and tail roundtrip.
Modified: llvm/trunk/test/Bitcode/terminatorInstructions.3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/terminatorInstructions.3.2.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/terminatorInstructions.3.2.ll (original)
+++ llvm/trunk/test/Bitcode/terminatorInstructions.3.2.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; TerminatorOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not misread terminator instructions from
Modified: llvm/trunk/test/Bitcode/upgrade-global-ctors.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/upgrade-global-ctors.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/upgrade-global-ctors.ll (original)
+++ llvm/trunk/test/Bitcode/upgrade-global-ctors.ll Mon Jul 28 20:13:56 2014
@@ -1,3 +1,4 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; CHECK: @llvm.global_ctors = appending global [0 x { i32, void ()*, i8* }] zeroinitializer
Modified: llvm/trunk/test/Bitcode/upgrade-loop-metadata.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/upgrade-loop-metadata.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/upgrade-loop-metadata.ll (original)
+++ llvm/trunk/test/Bitcode/upgrade-loop-metadata.ll Mon Jul 28 20:13:56 2014
@@ -1,6 +1,7 @@
; Test to make sure loop vectorizer metadata is automatically upgraded.
;
; RUN: llvm-dis < %s.bc | FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
define void @_Z28loop_with_vectorize_metadatav() {
entry:
Modified: llvm/trunk/test/Bitcode/upgrade-tbaa.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/upgrade-tbaa.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/upgrade-tbaa.ll (original)
+++ llvm/trunk/test/Bitcode/upgrade-tbaa.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5
; Function Attrs: nounwind
define void @_Z4testPiPf(i32* nocapture %pI, float* nocapture %pF) #0 {
Modified: llvm/trunk/test/Bitcode/vectorInstructions.3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/vectorInstructions.3.2.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/vectorInstructions.3.2.ll (original)
+++ llvm/trunk/test/Bitcode/vectorInstructions.3.2.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; vectorOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not misread vector operations of
Modified: llvm/trunk/test/Bitcode/visibility-styles.3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/visibility-styles.3.2.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/visibility-styles.3.2.ll (original)
+++ llvm/trunk/test/Bitcode/visibility-styles.3.2.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; visibility-styles.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not silently misread visibility styles of
Modified: llvm/trunk/test/Bitcode/weak-cmpxchg-upgrade.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/weak-cmpxchg-upgrade.ll?rev=214157&r1=214156&r2=214157&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/weak-cmpxchg-upgrade.ll (original)
+++ llvm/trunk/test/Bitcode/weak-cmpxchg-upgrade.ll Mon Jul 28 20:13:56 2014
@@ -1,4 +1,5 @@
; RUN: llvm-dis < %s.bc | FileCheck %s
+; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5
; cmpxchg-upgrade.ll.bc was produced by running a version of llvm-as from just
; before the IR change on this file.
More information about the llvm-commits
mailing list