forked from OSchip/llvm-project
[BOLT] Verify exceptions action table equivalence in ICF
Summary: Some functions may have exactly the same code and exception handlers. However, their action tables could be different leading to mismatching semantics. We should verify their equivalence while running ICF. (cherry picked from FBD20889035)
This commit is contained in:
parent
58b0d9e7b0
commit
b08d82d91b
|
@ -289,6 +289,13 @@ bool isIdenticalWith(const BinaryFunction &A, const BinaryFunction &B,
|
|||
++BBI;
|
||||
}
|
||||
|
||||
// Compare exceptions action tables.
|
||||
if (A.getLSDAActionTable() != B.getLSDAActionTable() ||
|
||||
A.getLSDATypeTable() != B.getLSDATypeTable() ||
|
||||
A.getLSDATypeIndexTable() != B.getLSDATypeIndexTable()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue