[all-commits] [llvm/llvm-project] 1796cf: [X86] Add test cases for missed opportunity to mat...

topperc via All-commits all-commits at lists.llvm.org
Wed May 6 23:28:47 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1796cfd8378f2336af9432159e637264c32f86de
      https://github.com/llvm/llvm-project/commit/1796cfd8378f2336af9432159e637264c32f86de
  Author: Craig Topper <craig.topper at gmail.com>
  Date:   2020-05-06 (Wed, 06 May 2020)

  Changed paths:
    M llvm/test/CodeGen/X86/pmulh.ll

  Log Message:
  -----------
  [X86] Add test cases for missed opportunity to match pmulh from multiplies with elements larger than i32.

We currently look for vXi32 sext/zext to match PMULH, but it
doesn't matter how many extra bits above i32 there are.


  Commit: 350645594eb1ed3f783d76e505f271316dd31f8e
      https://github.com/llvm/llvm-project/commit/350645594eb1ed3f783d76e505f271316dd31f8e
  Author: Craig Topper <craig.topper at gmail.com>
  Date:   2020-05-06 (Wed, 06 May 2020)

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

  Log Message:
  -----------
  [X86] Enable combinePMULH to match multiplies with elements larger than i32.

We're truncating so the extra bits will be discarded.


Compare: https://github.com/llvm/llvm-project/compare/2affcd664e6a...350645594eb1


More information about the All-commits mailing list