[llvm-commits] [llvm] r150183 - /llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Feb 9 08:28:15 PST 2012
Author: d0k
Date: Thu Feb 9 10:28:15 2012
New Revision: 150183
URL: http://llvm.org/viewvc/llvm-project?rev=150183&view=rev
Log:
Tweak comment readability and grammar.
Modified:
llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
Modified: llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp?rev=150183&r1=150182&r2=150183&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp Thu Feb 9 10:28:15 2012
@@ -2753,8 +2753,8 @@
/// destructor and can therefore be eliminated.
/// Note that we assume that other optimization passes have already simplified
/// the code so we only look for a function with a single basic block, where
-/// the only allowed instructions side-effect free, 'ret' or 'call' to empty
-/// C++ dtor.
+/// the only allowed instructions are 'ret', 'call' to an empty C++ dtor and
+/// other side-effect free instructions.
static bool cxxDtorIsEmpty(const Function &Fn,
SmallPtrSet<const Function *, 8> &CalledFunctions) {
// FIXME: We could eliminate C++ destructors if they're readonly/readnone and
More information about the llvm-commits
mailing list