aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-20 21:39:52 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-20 21:39:52 +0000
commite7fdef420d0c8a825555d246da259342c48bd527 (patch)
tree547217afeba3ac83e232e628a24c768f2ab6bf87 /test
parent2c5a960b0eae0634da6e1854111b35f475e65335 (diff)
downloadexternal_llvm-e7fdef420d0c8a825555d246da259342c48bd527.zip
external_llvm-e7fdef420d0c8a825555d246da259342c48bd527.tar.gz
external_llvm-e7fdef420d0c8a825555d246da259342c48bd527.tar.bz2
Don't add CFG edges for redundant conditional branches.
IR that hasn't been through SimplifyCFG can look like this: br i1 %b, label %r, label %r Make sure we don't create duplicate Machine CFG edges in this case. Fix the machine code verifier to accept conditional branches with a single CFG edge. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/constants.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/constants.ll b/test/CodeGen/ARM/constants.ll
index f4c1b5a..0ac8b48 100644
--- a/test/CodeGen/ARM/constants.ll
+++ b/test/CodeGen/ARM/constants.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=armv4t-unknown-linux-gnueabi -disable-cgp-branch-opts | FileCheck %s
+; RUN: llc < %s -mtriple=armv4t-unknown-linux-gnueabi -disable-cgp-branch-opts -verify-machineinstrs | FileCheck %s
define i32 @f1() {
; CHECK: f1