1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

[NFC] Make a check in GuardWidening more obvious

llvm-svn: 353038
This commit is contained in:
Max Kazantsev 2019-02-04 10:41:17 +00:00
parent eb58fb41c4
commit c65950c195

View File

@ -375,7 +375,7 @@ bool GuardWideningImpl::eliminateInstrViaWidening(
assert((i == (e - 1)) == (Instr->getParent() == CurBB) && "Bad DFS?");
if (Instr->getParent() == CurBB && CurBB->getTerminator() != Instr) {
if (Instr->getParent() == CurBB && isGuard(Instr)) {
// Corner case: make sure we're only looking at guards strictly dominating
// GuardInst when visiting GuardInst->getParent().
auto NewEnd = std::find(I, E, Instr);