[PATCH] D126727: Adding test with deprecated option '-reorder-blocks=cache+'

Huan Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 31 15:21:44 PDT 2022


nhuhuan created this revision.
Herald added a reviewer: rafauler.
Herald added a subscriber: ayermolo.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a project: All.
nhuhuan requested review of this revision.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.

This test is used to verify if warning message emitted when using
the deprecated option '-reorder-blocks=cache+'.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126727

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: D126727.433207.patch
Type: text/x-patch
Size: 499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220531/5e81c6a0/attachment.bin>


More information about the llvm-commits mailing list