summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SimpleLoopUnswitch
diff options
context:
space:
mode:
authorSerguei Katkov <serguei.katkov@azul.com>2019-07-10 10:25:22 +0000
committerSerguei Katkov <serguei.katkov@azul.com>2019-07-10 10:25:22 +0000
commitd000f8b69f721c8d9bfcf90dd8df9a25bbf3b2e5 (patch)
tree00f7a9cea4ec8aa9fe3d454a2a13e2abff5acfaa /llvm/test/Transforms/SimpleLoopUnswitch
parent71cac61d01888769c910b0f5f06b6337e9523199 (diff)
downloadbcm5719-llvm-d000f8b69f721c8d9bfcf90dd8df9a25bbf3b2e5.tar.gz
bcm5719-llvm-d000f8b69f721c8d9bfcf90dd8df9a25bbf3b2e5.zip
[SimpleLoopUnswitch] Don't consider unswitching `switch` insructions with one unique successor
Only instructions with two or more unique successors should be considered for unswitching. Patch Author: Daniil Suchkov. Reviewers: reames, asbirlea, skatkov Reviewed By: skatkov Subscribers: hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D64404 llvm-svn: 365611
Diffstat (limited to 'llvm/test/Transforms/SimpleLoopUnswitch')
-rw-r--r--llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-redundant-switch.ll1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-redundant-switch.ll b/llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-redundant-switch.ll
index 3624f5b9de6..8f743cac50c 100644
--- a/llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-redundant-switch.ll
+++ b/llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-redundant-switch.ll
@@ -1,5 +1,4 @@
; REQUIRES: asserts
-; XFAIL: *
; RUN: opt -passes='unswitch<nontrivial>' -disable-output -S < %s
; RUN: opt -simple-loop-unswitch -enable-nontrivial-unswitch -disable-output -S < %s
OpenPOWER on IntegriCloud