]> granicus.if.org Git - llvm/commit
[SimpleLoopUnswitch] Don't consider unswitching `switch` insructions with one unique...
authorSerguei Katkov <serguei.katkov@azul.com>
Wed, 10 Jul 2019 10:25:22 +0000 (10:25 +0000)
committerSerguei Katkov <serguei.katkov@azul.com>
Wed, 10 Jul 2019 10:25:22 +0000 (10:25 +0000)
commitb0cd2ae668c76044b018b9f88bcb3a9ccabc5418
treebed2356bc708f9c206e2c1cba340d076feb4c49e
parent035937569b759d976d64e4278af43187e6a1d044
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365611 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-redundant-switch.ll