Revert 131172 as it is causing clang to miscompile itself. I will try

to provide a reduced testcase.

llvm-svn: 131176
This commit is contained in:
Rafael Espindola
2011-05-11 03:27:17 +00:00
parent 3abc9b8b79
commit 2a09d65979
4 changed files with 10 additions and 296 deletions

View File

@@ -265,7 +265,7 @@ bool IfConverter::runOnMachineFunction(MachineFunction &MF) {
if (!TII) return false;
// Tail merge tend to expose more if-conversion opportunities.
BranchFolder BF(true, false);
BranchFolder BF(true);
bool BFChange = BF.OptimizeFunction(MF, TII,
MF.getTarget().getRegisterInfo(),
getAnalysisIfAvailable<MachineModuleInfo>());
@@ -399,7 +399,7 @@ bool IfConverter::runOnMachineFunction(MachineFunction &MF) {
BBAnalysis.clear();
if (MadeChange && IfCvtBranchFold) {
BranchFolder BF(false, false);
BranchFolder BF(false);
BF.OptimizeFunction(MF, TII,
MF.getTarget().getRegisterInfo(),
getAnalysisIfAvailable<MachineModuleInfo>());