From a3c57624c0dbe7c054c42174e98c3811dd7222cf Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Fri, 18 Jun 2004 08:46:15 +0000 Subject: [PATCH] Get rid of selects the easy way git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14230 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Sparc/SparcTargetMachine.cpp | 6 ++++++ lib/Target/SparcV8/SparcV8TargetMachine.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/lib/Target/Sparc/SparcTargetMachine.cpp b/lib/Target/Sparc/SparcTargetMachine.cpp index a888423a152..81d05dad140 100644 --- a/lib/Target/Sparc/SparcTargetMachine.cpp +++ b/lib/Target/Sparc/SparcTargetMachine.cpp @@ -46,6 +46,9 @@ bool SparcV8TargetMachine::addPassesToEmitAssembly(PassManager &PM, // Replace malloc and free instructions with library calls. PM.add(createLowerAllocationsPass()); + + // FIXME: implement the select instruction in the instruction selector. + PM.add(createLowerSelectPass()); // FIXME: implement the switch instruction in the instruction selector. PM.add(createLowerSwitchPass()); @@ -91,6 +94,9 @@ void SparcV8JITInfo::addPassesToJITCompile(FunctionPassManager &PM) { // Replace malloc and free instructions with library calls. PM.add(createLowerAllocationsPass()); + // FIXME: implement the select instruction in the instruction selector. + PM.add(createLowerSelectPass()); + // FIXME: implement the switch instruction in the instruction selector. PM.add(createLowerSwitchPass()); diff --git a/lib/Target/SparcV8/SparcV8TargetMachine.cpp b/lib/Target/SparcV8/SparcV8TargetMachine.cpp index a888423a152..81d05dad140 100644 --- a/lib/Target/SparcV8/SparcV8TargetMachine.cpp +++ b/lib/Target/SparcV8/SparcV8TargetMachine.cpp @@ -46,6 +46,9 @@ bool SparcV8TargetMachine::addPassesToEmitAssembly(PassManager &PM, // Replace malloc and free instructions with library calls. PM.add(createLowerAllocationsPass()); + + // FIXME: implement the select instruction in the instruction selector. + PM.add(createLowerSelectPass()); // FIXME: implement the switch instruction in the instruction selector. PM.add(createLowerSwitchPass()); @@ -91,6 +94,9 @@ void SparcV8JITInfo::addPassesToJITCompile(FunctionPassManager &PM) { // Replace malloc and free instructions with library calls. PM.add(createLowerAllocationsPass()); + // FIXME: implement the select instruction in the instruction selector. + PM.add(createLowerSelectPass()); + // FIXME: implement the switch instruction in the instruction selector. PM.add(createLowerSwitchPass());