From 7ae7a831b9df0cc971fa2cd4a4dd0887fac5b8df Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Wed, 9 Jul 2014 17:49:58 +0000 Subject: [PATCH] removed duplicate testcase llvm-svn: 212632 --- llvm/test/Transforms/InstCombine/pr20059.ll | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/llvm/test/Transforms/InstCombine/pr20059.ll b/llvm/test/Transforms/InstCombine/pr20059.ll index 8d7d69b..0ef3159 100644 --- a/llvm/test/Transforms/InstCombine/pr20059.ll +++ b/llvm/test/Transforms/InstCombine/pr20059.ll @@ -14,19 +14,3 @@ define <4 x i32> @do_not_reorder(<4 x i32> %p1, <4 x i32> %p2) { %retval = srem <4 x i32> %splat1, %splat2 ret <4 x i32> %retval } -; RUN: opt -S -instcombine < %s | FileCheck %s - -; In PR20059 ( http://llvm.org/pr20059 ), shufflevector operations are reordered/removed -; for an srem operation. This is not a valid optimization because it may cause a trap -; on div-by-zero. - -; CHECK-LABEL: @do_not_reorder -; CHECK: %splat1 = shufflevector <4 x i32> %p1, <4 x i32> undef, <4 x i32> zeroinitializer -; CHECK-NEXT: %splat2 = shufflevector <4 x i32> %p2, <4 x i32> undef, <4 x i32> zeroinitializer -; CHECK-NEXT: %retval = srem <4 x i32> %splat1, %splat2 -define <4 x i32> @do_not_reorder(<4 x i32> %p1, <4 x i32> %p2) { - %splat1 = shufflevector <4 x i32> %p1, <4 x i32> undef, <4 x i32> zeroinitializer - %splat2 = shufflevector <4 x i32> %p2, <4 x i32> undef, <4 x i32> zeroinitializer - %retval = srem <4 x i32> %splat1, %splat2 - ret <4 x i32> %retval -} -- 2.7.4