aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-05-12 18:44:58 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-05-12 18:44:58 +0000
commit30adced41b17cc9a5c301386e80567faccaff04f (patch)
tree3504a661cd5ccdc6bc14d690100f16b4759ad37d /lib/CodeGen/BranchFolding.cpp
parentc154514e2daf5497141980544f6b0b03a8e6c37c (diff)
Temporarily disable the transformation. It's breaking 186.crafty in some configuration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r--lib/CodeGen/BranchFolding.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp
index 0770a5f4d4..6fc077bc12 100644
--- a/lib/CodeGen/BranchFolding.cpp
+++ b/lib/CodeGen/BranchFolding.cpp
@@ -1354,6 +1354,10 @@ ReoptimizeBlock:
/// NOTE: This optimization does not update live-in information so it must be
/// run after all passes that require correct liveness information.
bool BranchFolder::HoistCommonCode(MachineFunction &MF) {
+#if 1
+ // FIXME: Temporarily disabled.
+ return false;
+#endif
bool MadeChange = false;
for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ) {
MachineBasicBlock *MBB = I++;