[PATCH] D60970: [BlockExtractor] Change the basic block separator from ',' to ';'

Quentin Colombet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 09:14:32 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL359462: [BlockExtractor] Change the basic block separator from ',' to ';' (authored by qcolombet, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D60970?vs=196096&id=197126#toc

Repository:
  rL LLVM

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

https://reviews.llvm.org/D60970

Files:
  llvm/trunk/lib/Transforms/IPO/BlockExtractor.cpp
  llvm/trunk/test/Transforms/BlockExtractor/extract-blocks-with-groups.ll


Index: llvm/trunk/test/Transforms/BlockExtractor/extract-blocks-with-groups.ll
===================================================================
--- llvm/trunk/test/Transforms/BlockExtractor/extract-blocks-with-groups.ll
+++ llvm/trunk/test/Transforms/BlockExtractor/extract-blocks-with-groups.ll
@@ -1,8 +1,8 @@
 ; Extract the 'if', 'then', and 'else' blocks into the same function.
-; RUN: echo 'foo if,then,else' > %t
+; RUN: echo 'foo if;then;else' > %t
 ; Make sure we can still extract a single basic block
 ; RUN: echo 'foo end' >> %t
-; RUN: echo 'bar bb14,bb20' >> %t
+; RUN: echo 'bar bb14;bb20' >> %t
 ; RUN: opt -S -extract-blocks -extract-blocks-file=%t %s | FileCheck %s
 
 ; CHECK-LABEL: foo
Index: llvm/trunk/lib/Transforms/IPO/BlockExtractor.cpp
===================================================================
--- llvm/trunk/lib/Transforms/IPO/BlockExtractor.cpp
+++ llvm/trunk/lib/Transforms/IPO/BlockExtractor.cpp
@@ -94,7 +94,7 @@
     if (LineSplit.empty())
       continue;
     SmallVector<StringRef, 4> BBNames;
-    LineSplit[1].split(BBNames, ',', /*MaxSplit=*/-1,
+    LineSplit[1].split(BBNames, ';', /*MaxSplit=*/-1,
                        /*KeepEmpty=*/false);
     if (BBNames.empty())
       report_fatal_error("Missing bbs name");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60970.197126.patch
Type: text/x-patch
Size: 1271 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190429/e0853743/attachment.bin>


More information about the llvm-commits mailing list