diff options
author | Hal Finkel <hfinkel@anl.gov> | 2012-11-14 22:58:30 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2012-11-14 22:58:30 +0000 |
commit | adea7bc349a18a1c8f9ba94bff61d5938075e600 (patch) | |
tree | 0afc76dd97f6999e05fb2da19c12be046753494b /test/Transforms/BBVectorize/X86/cmp-types.ll | |
parent | 9fb32372e7ce645badf32b64e568a9cb5bef2442 (diff) | |
download | llvm-adea7bc349a18a1c8f9ba94bff61d5938075e600.tar.gz llvm-adea7bc349a18a1c8f9ba94bff61d5938075e600.tar.bz2 llvm-adea7bc349a18a1c8f9ba94bff61d5938075e600.tar.xz |
Merge BBVectorizer changes r167731, r167743, r167750, r167784, r167811, r167817.
These changes fix a serious interaction problem with the cost model on x86 that
could cause the vectorizer to enter an infinite loop (and sometimes crash in
other ways).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_32@167993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/BBVectorize/X86/cmp-types.ll')
-rw-r--r-- | test/Transforms/BBVectorize/X86/cmp-types.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Transforms/BBVectorize/X86/cmp-types.ll b/test/Transforms/BBVectorize/X86/cmp-types.ll new file mode 100644 index 0000000000..a4fcbb6048 --- /dev/null +++ b/test/Transforms/BBVectorize/X86/cmp-types.ll @@ -0,0 +1,16 @@ +target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" +target triple = "x86_64-unknown-linux-gnu" +; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -bb-vectorize -S | FileCheck %s + +%"struct.btSoftBody" = type { float, float, float*, i8 } + +define void @test1(%"struct.btSoftBody"* %n1, %"struct.btSoftBody"* %n2) uwtable align 2 { +entry: + %tobool15 = icmp ne %"struct.btSoftBody"* %n1, null + %cond16 = zext i1 %tobool15 to i32 + %tobool21 = icmp ne %"struct.btSoftBody"* %n2, null + %cond22 = zext i1 %tobool21 to i32 + ret void +; CHECK: @test1 +} + |