[all-commits] [llvm/llvm-project] 9bcb30: [CodeGen] Improve ExpandMemCmp for more efficient ...

Igor Kirillov via All-commits all-commits at lists.llvm.org
Fri Oct 27 04:41:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9bcb30d31813bbdea6b65789f64aed3f0e58d507
      https://github.com/llvm/llvm-project/commit/9bcb30d31813bbdea6b65789f64aed3f0e58d507
  Author: Igor Kirillov <igor.kirillov at arm.com>
  Date:   2023-10-27 (Fri, 27 Oct 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/TargetTransformInfo.h
    M llvm/lib/CodeGen/ExpandMemCmp.cpp
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
    A llvm/test/CodeGen/AArch64/memcmp.ll
    A llvm/test/Transforms/ExpandMemCmp/AArch64/memcmp.ll

  Log Message:
  -----------
  [CodeGen] Improve ExpandMemCmp for more efficient non-register aligned sizes handling (#69942)

* Enhanced the logic of ExpandMemCmp pass to merge contiguous
subsequences
  in LoadSequence, based on sizes allowed in `AllowedTailExpansions`.
* This enhancement seeks to minimize the number of basic blocks and
produce optimized code when using memcmp with non-register aligned sizes.
* Enable this feature for AArch64 with memcmp sizes modulo 8 equal to
  3, 5, and 6.




More information about the All-commits mailing list