mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[NFC] Replace equivalent condition for better readability
llvm-svn: 353032
This commit is contained in:
parent
0c025989e1
commit
10bad41844
@ -380,7 +380,8 @@ bool GuardWideningImpl::eliminateGuardViaWidening(
|
||||
|
||||
assert((i == (e - 1)) == (GuardInst->getParent() == CurBB) && "Bad DFS?");
|
||||
|
||||
if (i == (e - 1) && CurBB->getTerminator() != GuardInst) {
|
||||
if (GuardInst->getParent() == CurBB &&
|
||||
CurBB->getTerminator() != GuardInst) {
|
||||
// Corner case: make sure we're only looking at guards strictly dominating
|
||||
// GuardInst when visiting GuardInst->getParent().
|
||||
auto NewEnd = std::find(I, E, GuardInst);
|
||||
|
Loading…
x
Reference in New Issue
Block a user