[PATCH] D29906: Correct typo s/hosting/hoisting/

Brian Cain via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 14 08:36:53 PST 2017


bcain updated this revision to Diff 88382.
bcain added a comment.

Included corresponding test cases.


Repository:
  rL LLVM

https://reviews.llvm.org/D29906

Files:
  lib/Transforms/Scalar/LICM.cpp
  test/Other/optimization-remarks-invalidation.ll
  test/Transforms/LICM/opt-remarks.ll


Index: test/Transforms/LICM/opt-remarks.ll
===================================================================
--- test/Transforms/LICM/opt-remarks.ll
+++ test/Transforms/LICM/opt-remarks.ll
@@ -10,7 +10,7 @@
   %j = phi i32 [ 0, %Entry ], [ %Next, %Loop ]
   %addr = getelementptr i32, i32* %array, i32 %j
   %a = load i32, i32* %addr
-; CHECK: remark: /tmp/kk.c:2:20: hosting load
+; CHECK: remark: /tmp/kk.c:2:20: hoisting load
   %b = load i32, i32* %p, !dbg !8
   %a2 = add i32 %a, %b
   store i32 %a2, i32* %addr
Index: test/Other/optimization-remarks-invalidation.ll
===================================================================
--- test/Other/optimization-remarks-invalidation.ll
+++ test/Other/optimization-remarks-invalidation.ll
@@ -53,7 +53,7 @@
   %j = phi i32 [ 0, %Entry ], [ %Next, %Loop ]
   %addr = getelementptr i32, i32* %array, i32 %j
   %a = load i32, i32* %addr
-; CHECK: remark: /tmp/kk.c:2:20: hosting load
+; CHECK: remark: /tmp/kk.c:2:20: hoisting load
   %b = load i32, i32* %p, !dbg !8
   %a2 = add i32 %a, %b
   store i32 %a2, i32* %addr
Index: lib/Transforms/Scalar/LICM.cpp
===================================================================
--- lib/Transforms/Scalar/LICM.cpp
+++ lib/Transforms/Scalar/LICM.cpp
@@ -847,7 +847,7 @@
   DEBUG(dbgs() << "LICM hoisting to " << Preheader->getName() << ": " << I
                << "\n");
   ORE->emit(OptimizationRemark(DEBUG_TYPE, "Hoisted", &I)
-            << "hosting " << ore::NV("Inst", &I));
+            << "hoisting " << ore::NV("Inst", &I));
 
   // Metadata can be dependent on conditions we are hoisting above.
   // Conservatively strip all metadata on the instruction unless we were


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29906.88382.patch
Type: text/x-patch
Size: 1681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170214/f75d97ed/attachment.bin>


More information about the llvm-commits mailing list