mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-29 13:54:57 +00:00
The code generator should work with unreachable blocks. If not, then this
is a bug that should be fixed in the code generator, not papered over with the simplifycfg pass. Eliminating this makes bugpoint much more useful git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14477 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23a53aa9c4
commit
1b17438aa8
@ -49,10 +49,6 @@ bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
|||||||
// FIXME: Implement the invoke/unwind instructions!
|
// FIXME: Implement the invoke/unwind instructions!
|
||||||
PM.add(createLowerInvokePass());
|
PM.add(createLowerInvokePass());
|
||||||
|
|
||||||
// FIXME: The code generator does not properly handle functions with
|
|
||||||
// unreachable basic blocks.
|
|
||||||
PM.add(createCFGSimplificationPass());
|
|
||||||
|
|
||||||
// FIXME: Implement the switch instruction in the instruction selector!
|
// FIXME: Implement the switch instruction in the instruction selector!
|
||||||
PM.add(createLowerSwitchPass());
|
PM.add(createLowerSwitchPass());
|
||||||
|
|
||||||
@ -82,10 +78,6 @@ void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
|||||||
// FIXME: Implement the invoke/unwind instructions!
|
// FIXME: Implement the invoke/unwind instructions!
|
||||||
PM.add(createLowerInvokePass());
|
PM.add(createLowerInvokePass());
|
||||||
|
|
||||||
// FIXME: The code generator does not properly handle functions with
|
|
||||||
// unreachable basic blocks.
|
|
||||||
PM.add(createCFGSimplificationPass());
|
|
||||||
|
|
||||||
// FIXME: Implement the switch instruction in the instruction selector!
|
// FIXME: Implement the switch instruction in the instruction selector!
|
||||||
PM.add(createLowerSwitchPass());
|
PM.add(createLowerSwitchPass());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user