]> granicus.if.org Git - llvm/commitdiff
[SCCP] Clarify a comment about unhandled instructions.
authorDavide Italiano <davide@freebsd.org>
Fri, 16 Jun 2017 20:27:17 +0000 (20:27 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 16 Jun 2017 20:27:17 +0000 (20:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305579 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SCCP.cpp

index c6929c33b3e9ea7dcac94fa88415fe17f6d2ab94..79cb0c85efea8e8ab6d5da2cce1efafebcf42433 100644 (file)
@@ -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);
   }
 };