diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-08 08:21:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-08 08:21:13 +0000 |
commit | 91114966b1558b3e1da9ea8fb9681e15b5315b8f (patch) | |
tree | 59ca6b0c58e7c17d9937e36b94b4e4ae0a87cd92 /test/Transforms/InstCombine/phi.ll | |
parent | 327127909eb8500edcdaae3ce9bd952b08003e59 (diff) | |
download | llvm-91114966b1558b3e1da9ea8fb9681e15b5315b8f.tar.gz llvm-91114966b1558b3e1da9ea8fb9681e15b5315b8f.tar.bz2 llvm-91114966b1558b3e1da9ea8fb9681e15b5315b8f.tar.xz |
teach a couple of instcombine transformations involving PHIs to
not turn a PHI in a legal type into a PHI of an illegal type, and
add a new optimization that breaks up insane integer PHI nodes into
small pieces (PR3451).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/phi.ll')
-rw-r--r-- | test/Transforms/InstCombine/phi.ll | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/phi.ll b/test/Transforms/InstCombine/phi.ll index b73ce3f986..23dec4a1b0 100644 --- a/test/Transforms/InstCombine/phi.ll +++ b/test/Transforms/InstCombine/phi.ll @@ -2,6 +2,8 @@ ; ; RUN: opt < %s -instcombine -S | FileCheck %s +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" + define i32 @test1(i32 %A, i1 %b) { BB0: br i1 %b, label %BB1, label %BB2 |