[all-commits] [llvm/llvm-project] 4455f3: Capture the name for mlir::OpPassManager in std::s...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Wed Nov 4 21:29:15 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4455f3ce72ba2bb0276200f6f29629afca8812d4
      https://github.com/llvm/llvm-project/commit/4455f3ce72ba2bb0276200f6f29629afca8812d4
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2020-11-05 (Thu, 05 Nov 2020)

  Changed paths:
    M mlir/lib/Pass/Pass.cpp

  Log Message:
  -----------
  Capture the name for mlir::OpPassManager in std::string instead of StringRef (NFC)

The previous behavior was fragile when building an OpPassManager using a
string, as it was forcing the client to ensure the string to outlive the
entire PassManager.
This isn't a performance sensitive area either that would justify
optimizing further.




More information about the All-commits mailing list