Index: lld/COFF/Config.h =================================================================== --- lld/COFF/Config.h +++ lld/COFF/Config.h @@ -84,7 +84,7 @@ std::string OutputFile; std::string ImportName; bool DoGC = true; - bool DoICF = true; + bool DoICF = false; bool Relocatable = true; bool Force = false; bool Debug = false; Index: lld/test/COFF/icf-associative.test =================================================================== --- lld/test/COFF/icf-associative.test +++ lld/test/COFF/icf-associative.test @@ -1,5 +1,5 @@ # RUN: yaml2obj < %s > %t.obj -# RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \ +# RUN: lld-link /opt:icf /entry:foo /out:%t.exe /subsystem:console /include:bar \ # RUN: /debug /verbose %t.obj > %t.log 2>&1 # RUN: FileCheck %s < %t.log Index: lld/test/COFF/icf-circular.test =================================================================== --- lld/test/COFF/icf-circular.test +++ lld/test/COFF/icf-circular.test @@ -1,5 +1,5 @@ # RUN: yaml2obj < %s > %t.obj -# RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \ +# RUN: lld-link /opt:icf /entry:foo /out:%t.exe /subsystem:console /include:bar \ # RUN: /verbose %t.obj > %t.log 2>&1 # RUN: FileCheck %s < %t.log Index: lld/test/COFF/icf-circular2.test =================================================================== --- lld/test/COFF/icf-circular2.test +++ lld/test/COFF/icf-circular2.test @@ -1,5 +1,5 @@ # RUN: yaml2obj < %s > %t.obj -# RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \ +# RUN: lld-link /opt:icf /entry:foo /out:%t.exe /subsystem:console /include:bar \ # RUN: /verbose %t.obj > %t.log 2>&1 # RUN: FileCheck %s < %t.log Index: lld/test/COFF/icf-simple.test =================================================================== --- lld/test/COFF/icf-simple.test +++ lld/test/COFF/icf-simple.test @@ -1,5 +1,5 @@ # RUN: yaml2obj < %s > %t.obj -# RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \ +# RUN: lld-link /opt:icf /entry:foo /out:%t.exe /subsystem:console /include:bar \ # RUN: /verbose %t.obj > %t.log 2>&1 # RUN: FileCheck -check-prefix=ICF %s < %t.log