Update clang/lib/Basic to stop relying on a MemoryBuffer*, using the
MemoryBufferRef from getBufferOrNone or getBufferOrFake instead of
getBuffer.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
FYI this showed up as a 1% compile-time regression in terms of instructions retired for O0-g builds: https://llvm-compile-time-tracker.com/compare.php?from=32a4ad3b6ce6028a371b028cf06fa5feff9534bf&to=54c1bcab90102481fe43b73f8547d47446ba2163&stat=instructions
Looking at the diff, it's not really obvious to me what could cause that, possibly GCC is just really bad at optimizing Optional<MemoryBufferRef>.