mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Remove dead blocks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14564 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fc3c82a804
commit
9a9ca0f06b
@ -68,6 +68,9 @@ bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
||||
// FIXME: Implement the switch instruction in the instruction selector!
|
||||
PM.add(createLowerSwitchPass());
|
||||
|
||||
// Make sure that no unreachable blocks are instruction selected.
|
||||
PM.add(createUnreachableBlockEliminationPass());
|
||||
|
||||
if (NoPatternISel && NoSimpleISel)
|
||||
PM.add(createX86SimpleInstructionSelector(*this));
|
||||
else if (NoPatternISel)
|
||||
@ -125,6 +128,9 @@ void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
||||
// FIXME: Implement the switch instruction in the instruction selector!
|
||||
PM.add(createLowerSwitchPass());
|
||||
|
||||
// Make sure that no unreachable blocks are instruction selected.
|
||||
PM.add(createUnreachableBlockEliminationPass());
|
||||
|
||||
if (NoPatternISel)
|
||||
PM.add(createX86SimpleInstructionSelector(TM));
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user