From bf4705c1bc4e9b7d2dfe7711e9a83c2125bec61c Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 14 Dec 2015 07:42:00 +0000 Subject: [PATCH] [llvm-dwp] Deduplicate type units It's O(N^2) because it does a simple walk through the existing types to find duplicates, but that will be fixed in a follow-up commit to use a mapping data structure of some kind. llvm-svn: 255482 --- test/tools/llvm-dwp/Inputs/type_dedup/a.dwo | Bin 0 -> 1449 bytes test/tools/llvm-dwp/Inputs/type_dedup/b.dwo | Bin 0 -> 1449 bytes test/tools/llvm-dwp/X86/type_dedup.test | 35 ++++++++++++++++++++ tools/llvm-dwp/llvm-dwp.cpp | 18 ++++++---- 4 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 test/tools/llvm-dwp/Inputs/type_dedup/a.dwo create mode 100644 test/tools/llvm-dwp/Inputs/type_dedup/b.dwo create mode 100644 test/tools/llvm-dwp/X86/type_dedup.test diff --git a/test/tools/llvm-dwp/Inputs/type_dedup/a.dwo b/test/tools/llvm-dwp/Inputs/type_dedup/a.dwo new file mode 100644 index 0000000000000000000000000000000000000000..cfd54c5fbc1a2487494f5e222067c0c17db39ff2 GIT binary patch literal 1449 zcmbtU&1=*^6n`_5=xRV(0%|KrK!mM_xZPTG{aCk(pY-6tdrh+08q6kZlCJJas7G(= z*_+@&1bgkpKgCPIi+{m__$HZ2(lO$}2k-0me(%lOWGAogY~H1WfD{6Ks4|HHv}qL& z@^AnKw7?6UXxp0lNgBkFwPs(jJ61bOcA{ricYUqb>8)7pFr1DrR@iEH1svO(Ou$(M zFCLHM2%IiB!ywIq$jkESm(kup9iZMreTd3)4Hck8Fd*@-&4c;AHly?$VuaE;u)Qq& z{^r9MhiZHR(deA8y@O?UKTbY^g^(B^d1oc0fzAj%h&o5~)j2vL49FrmzuPx;w%h-D z>nH%d1Q9x4YF{`)B$vpa}0ws@XV8_6c*4DGCx7Y1Hlx) zPG{rHanWZ<;h)NA=({`HTVd?k!xu5wMT$iw-HJz})X&m797LnIo@cX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