[all-commits] [llvm/llvm-project] e4a919: [X86][ArgumentPromotion] Allow Argument Promotion ...

topperc via All-commits all-commits at lists.llvm.org
Fri Apr 24 15:47:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e4a9190ad7b20a12476e3cccc30e842c0a93f1bb
      https://github.com/llvm/llvm-project/commit/e4a9190ad7b20a12476e3cccc30e842c0a93f1bb
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-04-24 (Fri, 24 Apr 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Transforms/ArgumentPromotion/X86/min-legal-vector-width.ll

  Log Message:
  -----------
  [X86][ArgumentPromotion] Allow Argument Promotion if caller and callee disagree on 512-bit vectors support if the arguments are scalar.

If one of caller/callee has disabled ZMM registers due to
prefer-vector-width=256, we were previously
disabling argument promotion as the ABI might be incompatible since
one side will split 512-bit vectors in this case.

But if we can see that the types are all scalar this shouldn't be
a problem.

This patch assumes that pointer element type reflects the type that
the argument will be promoted to.

Differential Revision: https://reviews.llvm.org/D78770




More information about the All-commits mailing list