[all-commits] [llvm/llvm-project] fc4469: [X86] detectAVGPattern - accept non-pow2 vectors b...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Sep 15 02:13:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fc446935d724e87be515eb465293d82e040eb571
      https://github.com/llvm/llvm-project/commit/fc446935d724e87be515eb465293d82e040eb571
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-09-15 (Tue, 15 Sep 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/avg.ll

  Log Message:
  -----------
  [X86] detectAVGPattern - accept non-pow2 vectors by padding.

Drop the pow2 vector limitation for AVG generation by padding the vector to the next pow2, creating the PAVG nodes and then extracting the final subvector.

Fixes some poor codegen that has been annoying me for years.....




More information about the All-commits mailing list