[PATCH] D115417: [LTO] Fix incomplete optimization remarks for dead functions when PreOptModuleHook or PostInternalizeModuleHook is defined

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 13 19:17:25 PST 2021


MaskRay added inline comments.


================
Comment at: lld/test/ELF/lto/opt-remarks-incomplete.ll:6
+; RUN: rm -f %t.yaml
+; RUN: ld.lld -emain --plugin-opt=emit-llvm --opt-remarks-filename %t.yaml %t1.o %t2.o -o %t
+; RUN: cat %t.yaml | FileCheck %s -check-prefix=REMARK
----------------
Use `_start` and remove `-emain`


================
Comment at: lld/test/ELF/lto/opt-remarks-incomplete.ll:7
+; RUN: ld.lld -emain --plugin-opt=emit-llvm --opt-remarks-filename %t.yaml %t1.o %t2.o -o %t
+; RUN: cat %t.yaml | FileCheck %s -check-prefix=REMARK
+
----------------



CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115417/new/

https://reviews.llvm.org/D115417



More information about the llvm-commits mailing list