BI->setUnconditionalDest(Dest1);
return true;
}
+ } else if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) {
+ if (ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition())) {
+
+
+ }
+
}
return false;
}
return true;
}
+ // Check to see if we can constant propagate this terminator instruction
+ // away...
+ bool Changed = ConstantFoldTerminator(BB);
+
// Check to see if this block has no non-phi instructions and only a single
// successor. If so, replace references to this basic block with references
// to the successor.
}
}
- return false;
+ return Changed;
}