[PATCH] D53091: [LV] Ignore more debug info.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 11 02:30:08 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL344232: [LV] Ignore more debug info. (authored by fhahn, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D53091?vs=169034&id=169175#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D53091

Files:
  llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp


Index: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4655,7 +4655,7 @@
   // For each block.
   for (BasicBlock *BB : TheLoop->blocks()) {
     // For each instruction in the loop.
-    for (Instruction &I : *BB) {
+    for (Instruction &I : BB->instructionsWithoutDebug()) {
       Type *T = I.getType();
 
       // Skip ignored values.
@@ -4893,7 +4893,7 @@
 
   unsigned Index = 0;
   for (BasicBlock *BB : make_range(DFS.beginRPO(), DFS.endRPO())) {
-    for (Instruction &I : *BB) {
+    for (Instruction &I : BB->instructionsWithoutDebug()) {
       IdxToInstr[Index++] = &I;
 
       // Save the end location of each USE.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53091.169175.patch
Type: text/x-patch
Size: 826 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181011/5bcb7db8/attachment.bin>


More information about the llvm-commits mailing list