[llvm-commits] [llvm] r44543 - /llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp
Chris Lattner
sabre at nondot.org
Mon Dec 3 11:43:19 PST 2007
Author: lattner
Date: Mon Dec 3 13:43:18 2007
New Revision: 44543
URL: http://llvm.org/viewvc/llvm-project?rev=44543&view=rev
Log:
update file comment.
Modified:
llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp?rev=44543&r1=44542&r2=44543&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp Mon Dec 3 13:43:18 2007
@@ -7,14 +7,17 @@
//
//===----------------------------------------------------------------------===//
//
-// This file implements dead code elimination and basic block merging.
-// Specifically:
+// This file implements dead code elimination and basic block merging, along
+// with a collection of other peephole control flow optimizations. For example:
//
// * Removes basic blocks with no predecessors.
// * Merges a basic block into its predecessor if there is only one and the
// predecessor only has one successor.
// * Eliminates PHI nodes for basic blocks with a single predecessor.
// * Eliminates a basic block that only contains an unconditional branch.
+// * Changes invoke instructions to nounwind functions to be calls.
+// * Change things like "if (x) if (y)" into "if (x&y)".
+// * etc..
//
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list