COFF: Remove useless micro-optimization.

This patch simplifies code by removing micro-optimization that doesn't
contribute to speed.

llvm-svn: 247964
This commit is contained in:
Rui Ueyama 2015-09-18 02:15:34 +00:00
parent c9a6e827bd
commit 8c73dfb6bf
1 changed files with 0 additions and 2 deletions

View File

@ -137,8 +137,6 @@ bool ICF::equalsVariable(const SectionChunk *A, const SectionChunk *B) {
auto Eq = [&](const coff_relocation &R1, const coff_relocation &R2) {
SymbolBody *B1 = A->File->getSymbolBody(R1.SymbolTableIndex)->repl();
SymbolBody *B2 = B->File->getSymbolBody(R2.SymbolTableIndex)->repl();
if (B1 == B2)
return true;
auto *D1 = dyn_cast<DefinedRegular>(B1);
auto *D2 = dyn_cast<DefinedRegular>(B2);
return D1 && D2 && D1->getChunk()->GroupID == D2->getChunk()->GroupID;