diff --git a/llvm/lib/CodeGen/Passes.cpp b/llvm/lib/CodeGen/Passes.cpp index 914c78b0b145..315aedddb9ef 100644 --- a/llvm/lib/CodeGen/Passes.cpp +++ b/llvm/lib/CodeGen/Passes.cpp @@ -55,8 +55,8 @@ FunctionPass *llvm::createRegisterAllocator(CodeGenOpt::Level OptLevel) { RegisterRegAlloc::setDefault(RegAlloc); } - // This forces linking of the greedy register allocator, so -regalloc=greedy - // works in clang. + // This forces linking of the linear scan register allocator, + // so -regalloc=linearscan still works in clang. if (Ctor == createLinearScanRegisterAllocator) return createLinearScanRegisterAllocator();