[all-commits] [llvm/llvm-project] 7425bd: [X86] Add test cases for 'abs from mul patterns' (...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat May 9 06:53:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7425bdbd2faa9483be71dc5674264540d3cb4b84
      https://github.com/llvm/llvm-project/commit/7425bdbd2faa9483be71dc5674264540d3cb4b84
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-05-09 (Sat, 09 May 2020)

  Changed paths:
    M llvm/test/CodeGen/X86/combine-mul.ll

  Log Message:
  -----------
  [X86] Add test cases for 'abs from mul patterns' (PR45691)


  Commit: 0e8e731449d8fbfa6ba4523de928b4812ef9f100
      https://github.com/llvm/llvm-project/commit/0e8e731449d8fbfa6ba4523de928b4812ef9f100
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-05-09 (Sat, 09 May 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll

  Log Message:
  -----------
  [X86] Allow combineVectorCompareAndMaskUnaryOp to handle 'all-bits' general case

For the sint_to_fp(and(X,C)) -> and(X,sint_to_fp(C)) fold, allow combineVectorCompareAndMaskUnaryOp to match any X that ComputeNumSignBits says is all-bits, not just SETCC.

Noticed while investigating mask promotion issues in PR45808


Compare: https://github.com/llvm/llvm-project/compare/84cbd472e592...0e8e731449d8


More information about the All-commits mailing list