summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/phi.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-08 08:21:13 +0000
committerChris Lattner <sabre@nondot.org>2009-11-08 08:21:13 +0000
commitc7a450b5b28eb50009a35a208f93674b25f1dac6 (patch)
tree00eb1c6189af7b394655e9d28e5b2678a8c129da /llvm/test/Transforms/InstCombine/phi.ll
parent6f3de50ca73e4427b552b5b6301985babc821189 (diff)
downloadbcm5719-llvm-c7a450b5b28eb50009a35a208f93674b25f1dac6.tar.gz
bcm5719-llvm-c7a450b5b28eb50009a35a208f93674b25f1dac6.zip
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). llvm-svn: 86443
Diffstat (limited to 'llvm/test/Transforms/InstCombine/phi.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/phi.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/phi.ll b/llvm/test/Transforms/InstCombine/phi.ll
index b73ce3f9867..23dec4a1b0e 100644
--- a/llvm/test/Transforms/InstCombine/phi.ll
+++ b/llvm/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
OpenPOWER on IntegriCloud