mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
[NFC] Make a check in GuardWidening more obvious
llvm-svn: 353038
This commit is contained in:
parent
eb58fb41c4
commit
c65950c195
@ -375,7 +375,7 @@ bool GuardWideningImpl::eliminateInstrViaWidening(
|
|||||||
|
|
||||||
assert((i == (e - 1)) == (Instr->getParent() == CurBB) && "Bad DFS?");
|
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
|
// Corner case: make sure we're only looking at guards strictly dominating
|
||||||
// GuardInst when visiting GuardInst->getParent().
|
// GuardInst when visiting GuardInst->getParent().
|
||||||
auto NewEnd = std::find(I, E, Instr);
|
auto NewEnd = std::find(I, E, Instr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user