This gets very expensive for basic blocks which don't have a name: it calls printAsOperand, which numbers the entire module. We don't normally need the name anyway, though, so don't compute it by default.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM.
Is there a cost in that the name is not cached anymore? Is it used even if -polly-use-llvm-names is not given?
Comment Actions
With the old pass manager, the only place that actually uses the result of getName() is some debug dumps in include/llvm/IR/PassManager.h. With the new pass manager, it looks like ScopPass.h/ScopPass.cpp call getName() unconditionally... but the result is still only used for debug dumps.