[PATCH] D46464: [ThinLTO] Support opt remarks options with distributed ThinLTO backends

Peter Collingbourne via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 4 15:32:41 PDT 2018


pcc added inline comments.


================
Comment at: test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll:14
+; RUN: %clang -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -fsave-optimization-record -fdiagnostics-show-hotness -o %t2.o -c
+; RUN: cat %t2.opt.yaml.thin.0.yaml | FileCheck %s -check-prefix=YAML
+
----------------
This file isn't named correctly according to the `-foptimization-record-file` flag, right? Looks like the easy fix would be to pass -1 as the task identifier to thinBackend, but it would probably be worth looking more closely at some point at how we name these extra files in LTO.


Repository:
  rC Clang

https://reviews.llvm.org/D46464





More information about the cfe-commits mailing list