Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Unified Diff: test/Transforms/InstCombine/pr2645-1.ll

Issue 7792066: [llvm] Conditionally include target intrinsics, based on --enable-target Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: cleanups Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/Transforms/InstCombine/neon-intrinsics.ll ('k') | test/Transforms/InstCombine/shufflemask-undef.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/Transforms/InstCombine/pr2645-1.ll
===================================================================
--- test/Transforms/InstCombine/pr2645-1.ll (revision 138929)
+++ test/Transforms/InstCombine/pr2645-1.ll (working copy)
@@ -1,39 +0,0 @@
-; RUN: opt < %s -instcombine -S | grep shufflevector
-; PR2645
-
-; instcombine shouldn't delete the shufflevector.
-
-define internal void @""(i8*, i32, i8*) {
-; <label>:3
- br label %4
-
-; <label>:4 ; preds = %6, %3
- %.0 = phi i32 [ 0, %3 ], [ %19, %6 ] ; <i32> [#uses=4]
- %5 = icmp slt i32 %.0, %1 ; <i1> [#uses=1]
- br i1 %5, label %6, label %20
-
-; <label>:6 ; preds = %4
- %7 = getelementptr i8* %2, i32 %.0 ; <i8*> [#uses=1]
- %8 = bitcast i8* %7 to <4 x i16>* ; <<4 x i16>*> [#uses=1]
- %9 = load <4 x i16>* %8, align 1 ; <<4 x i16>> [#uses=1]
- %10 = bitcast <4 x i16> %9 to <1 x i64> ; <<1 x i64>> [#uses=1]
- %11 = call <2 x i64> @foo(<1 x i64> %10)
-; <<2 x i64>> [#uses=1]
- %12 = bitcast <2 x i64> %11 to <4 x i32> ; <<4 x i32>> [#uses=1]
- %13 = bitcast <4 x i32> %12 to <8 x i16> ; <<8 x i16>> [#uses=2]
- %14 = shufflevector <8 x i16> %13, <8 x i16> %13, <8 x i32> < i32 0, i32 0, i32 1, i32 1, i32 2, i32 2, i32 3, i32 3 > ; <<8 x i16>> [#uses=1]
- %15 = bitcast <8 x i16> %14 to <4 x i32> ; <<4 x i32>> [#uses=1]
- %16 = sitofp <4 x i32> %15 to <4 x float> ; <<4 x float>> [#uses=1]
- %17 = getelementptr i8* %0, i32 %.0 ; <i8*> [#uses=1]
- %18 = bitcast i8* %17 to <4 x float>* ; <<4 x float>*> [#uses=1]
- store <4 x float> %16, <4 x float>* %18, align 1
- %19 = add i32 %.0, 1 ; <i32> [#uses=1]
- br label %4
-
-; <label>:20 ; preds = %4
- call void @llvm.x86.mmx.emms( )
- ret void
-}
-
-declare <2 x i64> @foo(<1 x i64>)
-declare void @llvm.x86.mmx.emms( )
« no previous file with comments | « test/Transforms/InstCombine/neon-intrinsics.ll ('k') | test/Transforms/InstCombine/shufflemask-undef.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698