mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Add a RequireStructuredCFG Field to TargetMachine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196634 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -677,6 +677,11 @@ MachineBasicBlock::SplitCriticalEdge(MachineBasicBlock *Succ, Pass *P) {
|
||||
MachineFunction *MF = getParent();
|
||||
DebugLoc dl; // FIXME: this is nowhere
|
||||
|
||||
// Performance might be harmed on HW that implements branching using exec mask
|
||||
// where both sides of the branches are always executed.
|
||||
if (MF->getTarget().requiresStructuredCFG())
|
||||
return NULL;
|
||||
|
||||
// We may need to update this's terminator, but we can't do that if
|
||||
// AnalyzeBranch fails. If this uses a jump table, we won't touch it.
|
||||
const TargetInstrInfo *TII = MF->getTarget().getInstrInfo();
|
||||
|
Reference in New Issue
Block a user