[PATCH] D126722: [BOLT][NFC] Warning for deprecated option '-reorder-blocks=cache+'

Huan Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 31 16:24:38 PDT 2022


nhuhuan updated this revision to Diff 433224.
nhuhuan added a comment.

Update the warning message for option 'cache+'
Specify the flag options in the warning messages as it would be
exposed to the users.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126722

Files:
  bolt/test/cache+-deprecated.test


Index: bolt/test/cache+-deprecated.test
===================================================================
--- /dev/null
+++ bolt/test/cache+-deprecated.test
@@ -0,0 +1,8 @@
+# Check for the replacement of calls to identical functions.
+
+REQUIRES: system-linux
+
+RUN: %clangxx %p/Inputs/bolt_icf.cpp -g -Wl,-q -o %t.exe
+RUN: llvm-bolt %t.exe -reorder-blocks=cache+ -relocs -o %t 2>&1 | FileCheck %s
+
+CHECK: '-reorder-blocks=cache+' is deprecated, please use '-reorder-blocks=ext-tsp' instead.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126722.433224.patch
Type: text/x-patch
Size: 499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220531/74652c9b/attachment-0001.bin>


More information about the llvm-commits mailing list