This opens up more optimization opportunities in passes that already handle MemCpyInst's.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp | ||
---|---|---|
834 | This HasMemcpy variable is being used in a bunch of places, so I'm surprised this is the only change in this pass. Why is that? |
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp | ||
---|---|---|
834 | We really only need to check HasMemcpy if we're about to emit one that's not inline, and there's only one spot in this pass that does that. Looks to me like the other two places that read HasMemcpy are short-cut optimizations of this fact. The one in isLegalStore probably could be relaxed this same way, but given we that we don't yet have dynamic sized llvm.memcpy.inline, I decided not to pursue that one. |
clang-tidy: warning: invalid case style for function 'CreateMemCpyInline' [readability-identifier-naming]
not useful