diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-09-27 18:43:48 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-09-27 18:43:48 +0000 |
| commit | 7c5f844e5abdbd563faf1029d9cb80e1ad6e8845 (patch) | |
| tree | 1a72b04723816409770f23f38ae4818032245893 /lib/Transforms | |
| parent | 57cf7e6666a6ef11381405389596a20fbb85d405 (diff) | |
| download | external_llvm-7c5f844e5abdbd563faf1029d9cb80e1ad6e8845.zip external_llvm-7c5f844e5abdbd563faf1029d9cb80e1ad6e8845.tar.gz external_llvm-7c5f844e5abdbd563faf1029d9cb80e1ad6e8845.tar.bz2 | |
Revert "Disable codegen prepare critical edge splitting. Machine instruction passes now"
This reverts revision 114633. It was breaking llvm-gcc-i386-linux-selfhost.
It seems there is a downstream bug that is exposed by
-cgp-critical-edge-splitting=0. When that bug is fixed, this patch can go back
in.
Note that the changes to tailcallfp2.ll are not reverted. They were good are
required.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
| -rw-r--r-- | lib/Transforms/Scalar/CodeGenPrepare.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp index 880a4e5..3221e14 100644 --- a/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -31,7 +31,6 @@ #include "llvm/Transforms/Utils/BuildLibCalls.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SmallSet.h" -#include "llvm/ADT/Statistic.h" #include "llvm/Assembly/Writer.h" #include "llvm/Support/CallSite.h" #include "llvm/Support/CommandLine.h" @@ -43,12 +42,10 @@ using namespace llvm; using namespace llvm::PatternMatch; -STATISTIC(NumElim, "Number of blocks eliminated"); - static cl::opt<bool> CriticalEdgeSplit("cgp-critical-edge-splitting", cl::desc("Split critical edges during codegen prepare"), - cl::init(false), cl::Hidden); + cl::init(true), cl::Hidden); namespace { class CodeGenPrepare : public FunctionPass { @@ -305,7 +302,6 @@ void CodeGenPrepare::EliminateMostlyEmptyBlock(BasicBlock *BB) { PFI->removeEdge(ProfileInfo::getEdge(BB, DestBB)); } BB->eraseFromParent(); - ++NumElim; DEBUG(dbgs() << "AFTER:\n" << *DestBB << "\n\n\n"); } |
