From 88017c08a6c7e5e7b8bcffdb939e1c88a0c5913a Mon Sep 17 00:00:00 2001 From: Gerolf Hoflehner Date: Wed, 27 Apr 2016 17:19:54 +0000 Subject: [PATCH] [InstCombine] Sharpended test case in pr21210.ll llvm-svn: 267742 --- llvm/test/Transforms/InstCombine/pr21210.ll | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/llvm/test/Transforms/InstCombine/pr21210.ll b/llvm/test/Transforms/InstCombine/pr21210.ll index 1db87949dda0..ac229a89ca50 100644 --- a/llvm/test/Transforms/InstCombine/pr21210.ll +++ b/llvm/test/Transforms/InstCombine/pr21210.ll @@ -31,9 +31,10 @@ entry: %cmp = icmp ult i32 %len, 4 br i1 %cmp, label %bb, label %b1 bb: - %cond = select i1 %cmp, i32 %len, i32 8 - %cmp11 = icmp eq i32 %cond, 8 - br i1 %cmp11, label %b0, label %b1 + %cmp2 = icmp ult i32 %0, 2 + %cond = select i1 %cmp2, i32 %len, i32 8 + %cmp3 = icmp eq i32 %cond, 8 + br i1 %cmp3, label %b0, label %b1 b0: call void @foo(i32 %len)