mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 09:13:34 +00:00
[NewGVN] Parenthesise assertion condition (-Wparenthesis).
Format an assertion message while I'm here. llvm-svn: 291710
This commit is contained in:
parent
7817029fa0
commit
feca1723a3
@ -1536,13 +1536,12 @@ void NewGVN::verifyMemoryCongruency() const {
|
||||
if (auto *FirstMUD = dyn_cast<MemoryUseOrDef>(KV.first)) {
|
||||
auto *SecondMUD = dyn_cast<MemoryUseOrDef>(KV.second);
|
||||
if (FirstMUD && SecondMUD)
|
||||
assert(singleReachablePHIPath(FirstMUD, SecondMUD) ||
|
||||
assert((singleReachablePHIPath(FirstMUD, SecondMUD) ||
|
||||
ValueToClass.lookup(FirstMUD->getMemoryInst()) ==
|
||||
ValueToClass.lookup(SecondMUD->getMemoryInst()) &&
|
||||
ValueToClass.lookup(SecondMUD->getMemoryInst())) &&
|
||||
"The instructions for these memory operations should have "
|
||||
"been in "
|
||||
"the same congruence class or reachable through a single "
|
||||
"argument phi");
|
||||
"been in the same congruence class or reachable through"
|
||||
"a single argument phi");
|
||||
} else if (auto *FirstMP = dyn_cast<MemoryPhi>(KV.first)) {
|
||||
|
||||
// We can only sanely verify that MemoryDefs in the operand list all have
|
||||
|
Loading…
x
Reference in New Issue
Block a user