================
@@ -1,9 +1,44 @@
 ; REQUIRES: x86, plugins, examples
 ; UNSUPPORTED: target={{.*windows.*}}
-; RUN: opt -module-summary %s -o %t.o
+; RUN: opt %s -o %t.o
+; RUN: opt -module-summary %s -o %t_thin.o
+
 ; RUN: ld.lld -%loadnewpmbye --lto-newpm-passes="goodbye" -mllvm=%loadbye 
-mllvm=-wave-goodbye %t.o -o /dev/null 2>&1 | FileCheck %s
 ; CHECK: Bye
 
+; Entry-points in pipeline for regular/monolithic LTO
+;
+; RUN: ld.lld -%loadnewpmbye -mllvm=%loadbye -mllvm=-print-ep-callbacks %t.o \
+; RUN:         -shared -o /dev/null | FileCheck --check-prefix=REGULAR %s
+;
+; REGULAR:      FullLinkTimeOptimizationEarly
+; REGULAR-NOT:  PipelineStart
+; REGULAR-NOT:  PipelineEarlySimplification
+; REGULAR:      Peephole
+; REGULAR-NOT:  ScalarOptimizerLate
+; REGULAR-NOT:  OptimizerEarly
+; REGULAR:      VectorizerStart
+; REGULAR:      VectorizerEnd
+; REGULAR-NOT:  OptimizerLast
----------------
weliveindetail wrote:

I think it can be surprising that LLD doesn't exercise the optimizer callbacks 
around the ones from the vectorizer, while ALL other tools would do that.

https://github.com/llvm/llvm-project/pull/172463
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to