Home
last modified time | relevance | path

Searched refs:ICF (Results 1 – 25 of 55) sorted by relevance

123

/llvm-project-15.0.7/lld/test/COFF/
H A Dicf-simple.test4 # 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 Dlto-icf.ll2 ; 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 Dincremental.test40 # 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 DICF.cpp40 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 DCMakeLists.txt13 ICF.cpp
/llvm-project-15.0.7/lld/MachO/
H A DICF.cpp31 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 Dld64-vs-lld.rst25 * 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 DICF.cpp98 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 Dicf16.s5 ## 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 Dicf-ineligible.s5 ## Check that ICF is able to merge equivalent sections with relocations to
7 ## ineligible for ICF.
H A Ddebug-dead-reloc-icf.s3 ## value if the referenced section symbol is folded into another section by ICF.
21 ## .text.1 will be folded by ICF.
H A Dgdb-index-icf.s2 ## 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 Deh-frame-hdr-icf-fde.s3 ## Testcase checks that we correctly deduplicate FDEs when ICF
45 ## Check .eh_frame contains CIE and two FDEs remaining after ICF.
H A Demit-relocs-icf2.s4 ## With ICF, merged sections do not have output sections assigned.
H A Dicf12.s6 # Check that ICF does not merge 2 sections which relocations
H A Dicf10.s6 # Checks that ICF does not merge 2 sections the offset of
H A Dicf15.s5 ## Check that ICF does not merge sections which relocations have equal addends,
H A Dicf13.s5 ## Check that ICF does not merge sections which relocations point to symbols
H A Dicf14.s6 # Check that ICF does not merge 2 sections which relocations
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DMustExecute.cpp71 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 Dicf-scale.s8 ## 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 Dstabs-icf.s7 # 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 DBoltDiff.cpp29 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 Dicf-jump-tables.test10 # CHECK: ICF folded {{.*}}. {{[^0]}} functions had jump tables.
/llvm-project-15.0.7/lld/test/MinGW/
H A Ddriver.test204 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

123