mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Fix failures in 099.go due to the cfgsimplify pass creating switch instructions
where there did not used to be any before git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11829 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e785e531f4
commit
87124425d0
@ -59,9 +59,6 @@ X86TargetMachine::X86TargetMachine(const Module &M, IntrinsicLowering *IL)
|
|||||||
// does to emit statically compiled machine code.
|
// does to emit statically compiled machine code.
|
||||||
bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
||||||
std::ostream &Out) {
|
std::ostream &Out) {
|
||||||
// FIXME: Implement the switch instruction in the instruction selector!
|
|
||||||
PM.add(createLowerSwitchPass());
|
|
||||||
|
|
||||||
// FIXME: Implement the invoke/unwind instructions!
|
// FIXME: Implement the invoke/unwind instructions!
|
||||||
PM.add(createLowerInvokePass());
|
PM.add(createLowerInvokePass());
|
||||||
|
|
||||||
@ -69,6 +66,9 @@ bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
|||||||
// unreachable basic blocks.
|
// unreachable basic blocks.
|
||||||
PM.add(createCFGSimplificationPass());
|
PM.add(createCFGSimplificationPass());
|
||||||
|
|
||||||
|
// FIXME: Implement the switch instruction in the instruction selector!
|
||||||
|
PM.add(createLowerSwitchPass());
|
||||||
|
|
||||||
if (NoPatternISel)
|
if (NoPatternISel)
|
||||||
PM.add(createX86SimpleInstructionSelector(*this));
|
PM.add(createX86SimpleInstructionSelector(*this));
|
||||||
else
|
else
|
||||||
@ -115,8 +115,6 @@ bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
|||||||
/// not supported for this target.
|
/// not supported for this target.
|
||||||
///
|
///
|
||||||
void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
||||||
// FIXME: Implement the switch instruction in the instruction selector!
|
|
||||||
PM.add(createLowerSwitchPass());
|
|
||||||
|
|
||||||
// FIXME: Implement the invoke/unwind instructions!
|
// FIXME: Implement the invoke/unwind instructions!
|
||||||
PM.add(createLowerInvokePass());
|
PM.add(createLowerInvokePass());
|
||||||
@ -125,6 +123,9 @@ void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
|||||||
// unreachable basic blocks.
|
// unreachable basic blocks.
|
||||||
PM.add(createCFGSimplificationPass());
|
PM.add(createCFGSimplificationPass());
|
||||||
|
|
||||||
|
// FIXME: Implement the switch instruction in the instruction selector!
|
||||||
|
PM.add(createLowerSwitchPass());
|
||||||
|
|
||||||
if (NoPatternISel)
|
if (NoPatternISel)
|
||||||
PM.add(createX86SimpleInstructionSelector(TM));
|
PM.add(createX86SimpleInstructionSelector(TM));
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user