| /llvm-project-15.0.7/lld/test/COFF/ |
| H A D | icf-simple.test | 4 # RUN: FileCheck -check-prefix=ICF %s < %t.log 6 # ICF: Selected foo 7 # ICF: Removed bar 16 # ICF is on by default (no /opt: flags). 19 # RUN: FileCheck -check-prefix=ICF %s < %t.log 21 # /debug disables ICF. 26 # /profile disables ICF. 31 # /opt:noref disables ICF. 36 # /debug /opt:ref enables ICF. 39 # RUN: FileCheck -check-prefix=ICF %s < %t.log [all …]
|
| H A D | lto-icf.ll | 2 ; Test that ICF works after LTO, i.e. both functions have the same address. 3 ; Previously, when we didn't enable function sections, ICF didn't work.
|
| H A D | incremental.test | 40 # RUN: | FileCheck -check-prefix=WARN-ICF %s 95 # WARN-ICF: ignoring '/incremental' because ICF is enabled; use '/opt:noicf' to disable
|
| /llvm-project-15.0.7/lld/COFF/ |
| H A D | ICF.cpp | 40 class ICF { class 81 bool ICF::isEligible(SectionChunk *c) { in isEligible() 106 void ICF::segregate(size_t begin, size_t end, bool constant) { in segregate() 132 bool ICF::assocEquals(const SectionChunk *a, const SectionChunk *b) { in assocEquals() 150 bool ICF::equalsConstant(const SectionChunk *a, const SectionChunk *b) { in equalsConstant() 183 bool ICF::equalsVariable(const SectionChunk *a, const SectionChunk *b) { in equalsVariable() 201 size_t ICF::findBoundary(size_t begin, size_t end) { in findBoundary() 208 void ICF::forEachClassRange(size_t begin, size_t end, in forEachClassRange() 218 void ICF::forEachClass(std::function<void(size_t, size_t)> fn) { in forEachClass() 250 void ICF::run() { in run() [all …]
|
| H A D | CMakeLists.txt | 13 ICF.cpp
|
| /llvm-project-15.0.7/lld/MachO/ |
| H A D | ICF.cpp | 31 class ICF { class 33 ICF(std::vector<ConcatInputSection *> &inputs); 59 ICF::ICF(std::vector<ConcatInputSection *> &inputs) { in ICF() function in ICF 95 bool ICF::equalsConstant(const ConcatInputSection *ia, in equalsConstant() 176 bool ICF::equalsVariable(const ConcatInputSection *ia, in equalsVariable() 236 size_t ICF::findBoundary(size_t begin, size_t end) { in findBoundary() 245 void ICF::forEachClassRange(size_t begin, size_t end, in forEachClassRange() 284 void ICF::run() { in run() 318 segregate(begin, end, &ICF::equalsConstant); in run() 325 segregate(begin, end, &ICF::equalsVariable); in run() [all …]
|
| H A D | ld64-vs-lld.rst | 25 * This turns off ICF (deduplication pass) in the linker. 27 * This turns off ICF and string merging in the linker.
|
| /llvm-project-15.0.7/lld/ELF/ |
| H A D | ICF.cpp | 98 template <class ELFT> class ICF { class 198 void ICF<ELFT>::segregate(size_t begin, size_t end, uint32_t eqClassBase, in segregate() 238 bool ICF<ELFT>::constantEq(const InputSection *secA, ArrayRef<RelTy> ra, in constantEq() 314 bool ICF<ELFT>::equalsConstant(const InputSection *a, const InputSection *b) { in equalsConstant() 334 bool ICF<ELFT>::variableEq(const InputSection *secA, ArrayRef<RelTy> ra, in variableEq() 371 bool ICF<ELFT>::equalsVariable(const InputSection *a, const InputSection *b) { in equalsVariable() 378 template <class ELFT> size_t ICF<ELFT>::findBoundary(size_t begin, size_t end) { in findBoundary() 392 void ICF<ELFT>::forEachClassRange(size_t begin, size_t end, in forEachClassRange() 403 void ICF<ELFT>::forEachClass(llvm::function_ref<void(size_t, size_t)> fn) { in forEachClass() 458 template <class ELFT> void ICF<ELFT>::run() { in run() [all …]
|
| /llvm-project-15.0.7/lld/test/ELF/ |
| H A D | icf16.s | 5 ## ICF is able to merge sections which relocations referring regular input sections 7 ## here we check that ICF code is able to handle and will not merge sections which
|
| H A D | icf-ineligible.s | 5 ## Check that ICF is able to merge equivalent sections with relocations to 7 ## ineligible for ICF.
|
| H A D | debug-dead-reloc-icf.s | 3 ## value if the referenced section symbol is folded into another section by ICF. 21 ## .text.1 will be folded by ICF.
|
| H A D | gdb-index-icf.s | 2 ## Test that the address range contributed by an ICF folded function is identical 3 ## to that of the folded-in function. Not considering ICF may lead to an address
|
| H A D | eh-frame-hdr-icf-fde.s | 3 ## Testcase checks that we correctly deduplicate FDEs when ICF 45 ## Check .eh_frame contains CIE and two FDEs remaining after ICF.
|
| H A D | emit-relocs-icf2.s | 4 ## With ICF, merged sections do not have output sections assigned.
|
| H A D | icf12.s | 6 # Check that ICF does not merge 2 sections which relocations
|
| H A D | icf10.s | 6 # Checks that ICF does not merge 2 sections the offset of
|
| H A D | icf15.s | 5 ## Check that ICF does not merge sections which relocations have equal addends,
|
| H A D | icf13.s | 5 ## Check that ICF does not merge sections which relocations point to symbols
|
| H A D | icf14.s | 6 # Check that ICF does not merge 2 sections which relocations
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | MustExecute.cpp | 71 return ICF.hasICF(BB); in blockMayThrow() 80 ICF.clear(); in computeLoopSafetyInfo() 85 if (ICF.hasICF(&*BB)) { in computeLoopSafetyInfo() 94 ICF.insertInstructionTo(Inst, BB); in insertInstructionTo() 99 ICF.removeInstruction(Inst); in removeInstruction() 270 return !ICF.isDominatedByICFIFromSameBlock(&Inst) && in isGuaranteedToExecute()
|
| /llvm-project-15.0.7/lld/test/MachO/ |
| H A D | icf-scale.s | 8 ## When ICF has fewer than 1 Ki functions to segregate into equivalence classes, 10 ## At 1 Ki functions or more, when threading begins to pay-off, ICF employs its
|
| H A D | stabs-icf.s | 7 # This should include no N_FUN entry for _bar2 (which is ICF'd into _bar),
|
| /llvm-project-15.0.7/bolt/lib/Rewrite/ |
| H A D | BoltDiff.cpp | 29 extern cl::opt<bool> ICF; 688 if (opts::ICF) { in compare() 689 IdenticalCodeFolding ICF(opts::NeverPrint); in compare() local 691 ICF.runOnFunctions(*BC); in compare() 693 ICF.runOnFunctions(*RI2.BC); in compare()
|
| /llvm-project-15.0.7/bolt/test/X86/ |
| H A D | icf-jump-tables.test | 10 # CHECK: ICF folded {{.*}}. {{[^0]}} functions had jump tables.
|
| /llvm-project-15.0.7/lld/test/MinGW/ |
| H A D | driver.test | 204 RUN: ld.lld -### -m i386pep foo.o 2>&1 | FileCheck -check-prefix ICF-NONE %s 205 RUN: ld.lld -### -m i386pep foo.o --icf=none 2>&1 | FileCheck -check-prefix ICF-NONE %s 206 RUN: ld.lld -### -m i386pep foo.o -icf=none 2>&1 | FileCheck -check-prefix ICF-NONE %s 207 RUN: ld.lld -### -m i386pep foo.o --icf=safe 2>&1 | FileCheck -check-prefix ICF-NONE %s 208 RUN: ld.lld -### -m i386pep foo.o -icf=safe 2>&1 | FileCheck -check-prefix ICF-NONE %s 209 ICF-NONE: -opt:noicf 211 RUN: ld.lld -### -m i386pep foo.o --icf=all 2>&1 | FileCheck -check-prefix ICF %s 212 RUN: ld.lld -### -m i386pep foo.o -icf=all 2>&1 | FileCheck -check-prefix ICF %s 213 RUN: ld.lld -### -m i386pep foo.o --icf all 2>&1 | FileCheck -check-prefix ICF %s 214 ICF: -opt:icf
|