forked from OSchip/llvm-project
[NFC] Make a check in GuardWidening more obvious
llvm-svn: 353038
This commit is contained in:
parent
3643cbbf9c
commit
56b57e3f53
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue