[IR] Replace `isa<TerminatorInst>` with `isTerminator()`.
commitd3b94f9cfab9ee0710cd624388181ed7bd067c00
authorChandler Carruth <chandlerc@gmail.com>
Sun, 26 Aug 2018 09:51:22 +0000 (26 09:51 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 26 Aug 2018 09:51:22 +0000 (26 09:51 +0000)
treebb600354f812fce810c9ff022e2df43b0c05193d
parent11ac754ffba980f26825a347bc3eca47fb75fe10
[IR] Replace `isa<TerminatorInst>` with `isTerminator()`.

This is a bit awkward in a handful of places where we didn't even have
an instruction and now we have to see if we can build one. But on the
whole, this seems like a win and at worst a reasonable cost for removing
`TerminatorInst`.

All of this is part of the removal of `TerminatorInst` from the
`Instruction` type hierarchy.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@340701 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScopBuilder.cpp
lib/Analysis/ScopDetection.cpp
lib/Support/VirtualInstruction.cpp