Skip to content

Commit 6345993

Browse files
committed
Remove the TODO as it's implemented
1 parent 20eede6 commit 6345993

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

llvm/include/llvm/Passes/CodeGenPassBuilder.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,6 @@ void CodeGenPassBuilder<Derived, TargetMachineT>::addTargetRegisterAllocator(
10751075
template <typename Derived, typename TargetMachineT>
10761076
void CodeGenPassBuilder<Derived, TargetMachineT>::addRegAllocPass(
10771077
AddMachinePass &addPass, bool Optimized) const {
1078-
// TODO: Parse Opt.RegAlloc to add register allocator.
10791078
// Use the specified -regalloc-npm={basic|greedy|fast|pbqp}
10801079
if (Opt.RegAlloc > RegAllocType::Default) {
10811080
switch (Opt.RegAlloc) {

llvm/tools/llc/NewPMDriver.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@
4848

4949
using namespace llvm;
5050

51-
// static cl::opt<std::string>
52-
// RegAlloc("regalloc-npm",
53-
// cl::desc("Register allocator to use for new pass manager"),
54-
// cl::Hidden, cl::init("default"));
55-
56-
// create option for RegAllocType enum
5751
static cl::opt<RegAllocType> RegAlloc(
5852
"regalloc-npm", cl::desc("Register allocator to use for new pass manager"),
5953
cl::Hidden, cl::init(RegAllocType::Unset),

0 commit comments

Comments
 (0)