[llvm] r240998 - [FaultMaps] Fix test case.
Sanjoy Das
sanjoy at playingwithpointers.com
Mon Jun 29 14:27:37 PDT 2015
Author: sanjoy
Date: Mon Jun 29 16:27:36 2015
New Revision: 240998
URL: http://llvm.org/viewvc/llvm-project?rev=240998&view=rev
Log:
[FaultMaps] Fix test case.
implicit-null-check-negative.ll had a missing 2>&1. Fix this, and
remove an incorrect test case that this exposes.
Modified:
llvm/trunk/test/CodeGen/X86/implicit-null-check-negative.ll
Modified: llvm/trunk/test/CodeGen/X86/implicit-null-check-negative.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/implicit-null-check-negative.ll?rev=240998&r1=240997&r2=240998&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/implicit-null-check-negative.ll (original)
+++ llvm/trunk/test/CodeGen/X86/implicit-null-check-negative.ll Mon Jun 29 16:27:36 2015
@@ -1,4 +1,4 @@
-; RUN: llc -mtriple=x86_64-apple-macosx -O3 -debug-only=faultmaps -enable-implicit-null-checks < %s | FileCheck %s
+; RUN: llc -mtriple=x86_64-apple-macosx -O3 -debug-only=faultmaps -enable-implicit-null-checks < %s 2>&1 | FileCheck %s
; REQUIRES: asserts
; List cases where we should *not* be emitting implicit null checks.
@@ -36,18 +36,3 @@ define i32 @imp_null_check_gep_load(i32*
%t = load i32, i32* %x.gep
ret i32 %t
}
-
-define i32 @imp_null_check_load_no_md(i32* %x) {
-; Everything is okay except that the !never.executed metadata is
-; missing.
- entry:
- %c = icmp eq i32* %x, null
- br i1 %c, label %is_null, label %not_null
-
- is_null:
- ret i32 42
-
- not_null:
- %t = load i32, i32* %x
- ret i32 %t
-}
More information about the llvm-commits
mailing list