This allows doing memcmp(p, q, 7) with 2 loads instead of a call to
memcmp.
This fixes part of PR45147.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D76133
[ExpandMemCmp] Allow overlaping loads in the zero-relational case. ClosedPublic Authored by courbet on Mar 13 2020, 7:29 AM.
Details Summary This allows doing memcmp(p, q, 7) with 2 loads instead of a call to
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 31 2020, 10:39 AM Closed by commit rGfb4aa30f272b: [ExpandMemCmp] Allow overlaping loads in the zero-relational case. (authored by courbet). · Explain WhyApr 2 2020, 2:41 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 250196 llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/CodeGen/X86/memcmp-more-load-pairs.ll
llvm/test/CodeGen/X86/memcmp.ll
llvm/test/Transforms/ExpandMemCmp/X86/memcmp.ll
|