[all-commits] [llvm/llvm-project] 4214ca: [X86][AVX] Attempt to fold vpermf128(op(x, i), op(y, ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Jan 11 09:09:33 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4214ca96145c9487407925b121b85fafb1179209
      https://github.com/llvm/llvm-project/commit/4214ca96145c9487407925b121b85fafb1179209
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-01-11 (Mon, 11 Jan 2021)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/vector-trunc.ll

  Log Message:
  -----------
  [X86][AVX] Attempt to fold vpermf128(op(x,i),op(y,i)) -> op(vpermf128(x,y),i)

If vpermf128/vpermi128 is acting on 2 similar 'inlane' ops, then try to perform the vpermf128 first which will allow us to merge the ops.

This will help us fix one of the regressions in D56387




More information about the All-commits mailing list