[PATCH] D27782: [codegen] Add generic functions to skip debug values.
    Adrian Prantl via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Dec 14 15:45:17 PST 2016
    
    
  
aprantl added inline comments.
================
Comment at: lib/CodeGen/RegisterPressure.cpp:814
   // Find the previous instruction.
-  do
-    --CurrPos;
-  while (CurrPos != MBB->begin() && CurrPos->isDebugValue());
+  CurrPos--;
+  skipDebugInstructionsBackward(CurrPos, MBB->begin());
----------------
--CurrPos; ?
https://reviews.llvm.org/D27782
    
    
More information about the llvm-commits
mailing list