[llvm] r266403 - Move divergent-target test into CodeGen/NVPTX because it requires an NVPTX target.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 14 18:20:52 PDT 2016


Author: jlebar
Date: Thu Apr 14 20:20:52 2016
New Revision: 266403

URL: http://llvm.org/viewvc/llvm-project?rev=266403&view=rev
Log:
Move divergent-target test into CodeGen/NVPTX because it requires an NVPTX target.

Added:
    llvm/trunk/test/CodeGen/NVPTX/speculative-execution-divergent-target.ll
      - copied, changed from r266399, llvm/trunk/test/Transforms/SpeculativeExecution/divergent-target.ll
Removed:
    llvm/trunk/test/Transforms/SpeculativeExecution/divergent-target.ll

Copied: llvm/trunk/test/CodeGen/NVPTX/speculative-execution-divergent-target.ll (from r266399, llvm/trunk/test/Transforms/SpeculativeExecution/divergent-target.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/NVPTX/speculative-execution-divergent-target.ll?p2=llvm/trunk/test/CodeGen/NVPTX/speculative-execution-divergent-target.ll&p1=llvm/trunk/test/Transforms/SpeculativeExecution/divergent-target.ll&r1=266399&r2=266403&rev=266403&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SpeculativeExecution/divergent-target.ll (original)
+++ llvm/trunk/test/CodeGen/NVPTX/speculative-execution-divergent-target.ll Thu Apr 14 20:20:52 2016
@@ -1,10 +1,12 @@
+; Checks that speculative-execution only runs on divergent targets, if you pass
+; -spec-exec-only-if-divergent-target.
+
 ; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda -speculative-execution | \
 ; RUN:   FileCheck --check-prefix=ON %s
 ; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda -speculative-execution \
 ; RUN:   -spec-exec-only-if-divergent-target | \
 ; RUN:   FileCheck --check-prefix=ON %s
-; RUN: opt < %s -S -march=x86_64 -speculative-execution \
-; RUN:   -spec-exec-only-if-divergent-target | \
+; RUN: opt < %s -S -speculative-execution -spec-exec-only-if-divergent-target | \
 ; RUN:   FileCheck --check-prefix=OFF %s
 
 ; Hoist in if-then pattern.

Removed: llvm/trunk/test/Transforms/SpeculativeExecution/divergent-target.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SpeculativeExecution/divergent-target.ll?rev=266402&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/SpeculativeExecution/divergent-target.ll (original)
+++ llvm/trunk/test/Transforms/SpeculativeExecution/divergent-target.ll (removed)
@@ -1,22 +0,0 @@
-; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda -speculative-execution | \
-; RUN:   FileCheck --check-prefix=ON %s
-; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda -speculative-execution \
-; RUN:   -spec-exec-only-if-divergent-target | \
-; RUN:   FileCheck --check-prefix=ON %s
-; RUN: opt < %s -S -march=x86_64 -speculative-execution \
-; RUN:   -spec-exec-only-if-divergent-target | \
-; RUN:   FileCheck --check-prefix=OFF %s
-
-; Hoist in if-then pattern.
-define void @f() {
-; ON: %x = add i32 2, 3
-; ON: br i1 true
-; OFF: br i1 true
-; OFF: %x = add i32 2, 3
-  br i1 true, label %a, label %b
-a:
-  %x = add i32 2, 3
-  br label %b
-b:
-  ret void
-}




More information about the llvm-commits mailing list