[polly] r308874 - [ForwardOpTree] Fix mixup in comment. NFC.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 24 05:39:46 PDT 2017


Author: meinersbur
Date: Mon Jul 24 05:39:46 2017
New Revision: 308874

URL: http://llvm.org/viewvc/llvm-project?rev=308874&view=rev
Log:
[ForwardOpTree] Fix mixup in comment. NFC.

The cases DoIt==false and DoIt==true were mixed up.

Thanks to Siddharth for noticing.

Modified:
    polly/trunk/lib/Transform/ForwardOpTree.cpp

Modified: polly/trunk/lib/Transform/ForwardOpTree.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/ForwardOpTree.cpp?rev=308874&r1=308873&r2=308874&view=diff
==============================================================================
--- polly/trunk/lib/Transform/ForwardOpTree.cpp (original)
+++ polly/trunk/lib/Transform/ForwardOpTree.cpp Mon Jul 24 05:39:46 2017
@@ -104,8 +104,8 @@ private:
   ///                   DoIt==true if an operand tree is not known to be
   ///                   forwardable.
   ///
-  /// @return When DoIt==true, return whether the operand tree can be forwarded.
-  ///         When DoIt==false, return FD_DidForward.
+  /// @return If DoIt==false, return whether the operand tree can be forwarded.
+  ///         If DoIt==true, return FD_DidForward.
   ForwardingDecision canForwardTree(ScopStmt *TargetStmt, Value *UseVal,
                                     ScopStmt *UseStmt, Loop *UseLoop,
                                     bool DoIt) {




More information about the llvm-commits mailing list