[llvm] r305579 - [SCCP] Clarify a comment about unhandled instructions.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 16 13:27:17 PDT 2017


Author: davide
Date: Fri Jun 16 15:27:17 2017
New Revision: 305579

URL: http://llvm.org/viewvc/llvm-project?rev=305579&view=rev
Log:
[SCCP] Clarify a comment about unhandled instructions.

Modified:
    llvm/trunk/lib/Transforms/Scalar/SCCP.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SCCP.cpp?rev=305579&r1=305578&r2=305579&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SCCP.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SCCP.cpp Fri Jun 16 15:27:17 2017
@@ -536,9 +536,10 @@ private:
   void visitUnreachableInst(TerminatorInst &I) { /*returns void*/ }
   void visitFenceInst     (FenceInst &I) { /*returns void*/ }
   void visitInstruction(Instruction &I) {
-    // If a new instruction is added to LLVM that we don't handle.
+    // All the instructions we don't do any special handling for just
+    // go to overdefined.
     DEBUG(dbgs() << "SCCP: Don't know how to handle: " << I << '\n');
-    markOverdefined(&I);   // Just in case
+    markOverdefined(&I);
   }
 };
 




More information about the llvm-commits mailing list