diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2018-08-26 08:56:42 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2018-08-26 08:56:42 +0000 |
commit | 698fbe7b59a77888f108fbfe37e17a1db0cace8c (patch) | |
tree | dbb7aba182f9903a5ae73514df768157d5a25c10 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 96fc1de77da3efd1ec1f5cbbb4936de4bac8105d (diff) | |
download | bcm5719-llvm-698fbe7b59a77888f108fbfe37e17a1db0cace8c.tar.gz bcm5719-llvm-698fbe7b59a77888f108fbfe37e17a1db0cace8c.zip |
[IR] Sink `isExceptional` predicate to `Instruction`, rename it to
`isExceptionalTermiantor` and implement it for opcodes as well following
the common pattern in `Instruction`.
Part of removing `TerminatorInst` from the `Instruction` type hierarchy
to make it easier to share logic and interfaces between instructions
that are both terminators and not terminators.
llvm-svn: 340699
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 06f7844e8bd..d0f7be228d2 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -4637,7 +4637,7 @@ GetCaseResults(SwitchInst *SI, ConstantInt *CaseVal, BasicBlock *CaseDest, for (Instruction &I :CaseDest->instructionsWithoutDebug()) { if (TerminatorInst *T = dyn_cast<TerminatorInst>(&I)) { // If the terminator is a simple branch, continue to the next block. - if (T->getNumSuccessors() != 1 || T->isExceptional()) + if (T->getNumSuccessors() != 1 || T->isExceptionalTerminator()) return false; Pred = CaseDest; CaseDest = T->getSuccessor(0); |