File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1027,10 +1027,10 @@ void CodeGenAction::runOptimizationPipeline(llvm::raw_pwrite_stream &os) {
10271027 if (emitSummary && !opts.PrepareForThinLTO )
10281028 llvmModule->addModuleFlag (llvm::Module::Error, " ThinLTO" , uint32_t (0 ));
10291029
1030- if (opts.PrepareForFatLTO ) {
1030+ if (opts.PrepareForFatLTO )
10311031 mpm = pb.buildFatLTODefaultPipeline (level, opts.PrepareForThinLTO ,
10321032 emitSummary);
1033- } else if (opts.PrepareForFullLTO )
1033+ else if (opts.PrepareForFullLTO )
10341034 mpm = pb.buildLTOPreLinkDefaultPipeline (level);
10351035 else if (opts.PrepareForThinLTO )
10361036 mpm = pb.buildThinLTOPreLinkDefaultPipeline (level);
Original file line number Diff line number Diff line change 11! Test that the output is LLVM bitcode for LTO and not a native objectfile by
2- ! disassembling it to LLVM IR. Also tests module summaries are emitted for LTO
2+ ! disassembling it to LLVM IR. Also tests that module summaries are emitted for LTO
33
44! RUN: %flang %s -c -o - | not llvm-dis -o %t
55! RUN: %flang_fc1 %s -emit-llvm-bc -o - | llvm-dis -o - | FileCheck %s
1111! CHECK-NOT: ^{{.*}} = gv: (name:
1212! CHECK-NOT: ^{{.*}} = blockcount:
1313
14- ! RUN: %flang -flto %s -c -o - | llvm-dis -o - | FileCheck %s --check-prefix=FULL
14+ ! RUN: %flang -flto=thin %s -c -o - | llvm-dis -o - | FileCheck %s --check-prefix=THIN
1515! THIN: define void @_QQmain()
1616! THIN-NEXT: ret void
1717! THIN-NEXT: }
2020! THIN: ^{{.*}} = gv: (name:
2121! THIN: ^{{.*}} = blockcount:
2222
23- ! RUN: %flang -flto=thin %s -c -o - | llvm-dis -o - | FileCheck %s --check-prefix=THIN
23+ ! RUN: %flang -flto %s -c -o - | llvm-dis -o - | FileCheck %s --check-prefix=FULL
2424! FULL: define void @_QQmain()
2525! FULL-NEXT: ret void
2626! FULL-NEXT: }
You can’t perform that action at this time.
0 commit comments