mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
Fix failures in 099.go due to the cfgsimplify pass creating switch instructions
where there did not used to be any before llvm-svn: 11829
This commit is contained in:
parent
5166390fd2
commit
7c05e5d4d8
@ -59,9 +59,6 @@ X86TargetMachine::X86TargetMachine(const Module &M, IntrinsicLowering *IL)
|
||||
// does to emit statically compiled machine code.
|
||||
bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
||||
std::ostream &Out) {
|
||||
// FIXME: Implement the switch instruction in the instruction selector!
|
||||
PM.add(createLowerSwitchPass());
|
||||
|
||||
// FIXME: Implement the invoke/unwind instructions!
|
||||
PM.add(createLowerInvokePass());
|
||||
|
||||
@ -69,6 +66,9 @@ bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
||||
// unreachable basic blocks.
|
||||
PM.add(createCFGSimplificationPass());
|
||||
|
||||
// FIXME: Implement the switch instruction in the instruction selector!
|
||||
PM.add(createLowerSwitchPass());
|
||||
|
||||
if (NoPatternISel)
|
||||
PM.add(createX86SimpleInstructionSelector(*this));
|
||||
else
|
||||
@ -115,8 +115,6 @@ bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
||||
/// not supported for this target.
|
||||
///
|
||||
void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
||||
// FIXME: Implement the switch instruction in the instruction selector!
|
||||
PM.add(createLowerSwitchPass());
|
||||
|
||||
// FIXME: Implement the invoke/unwind instructions!
|
||||
PM.add(createLowerInvokePass());
|
||||
@ -125,6 +123,9 @@ void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
||||
// unreachable basic blocks.
|
||||
PM.add(createCFGSimplificationPass());
|
||||
|
||||
// FIXME: Implement the switch instruction in the instruction selector!
|
||||
PM.add(createLowerSwitchPass());
|
||||
|
||||
if (NoPatternISel)
|
||||
PM.add(createX86SimpleInstructionSelector(TM));
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user