[all-commits] [llvm/llvm-project] fccd79: [X86] Add tests showing failure of combineVectorCo...

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


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

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

  Log Message:
  -----------
  [X86] Add tests showing failure of combineVectorCompareAndMaskUnaryOp to handle 'all-bits' general case

For the sint_to_fp(and(X,C)) -> and(X,sint_to_fp(C)) fold, combineVectorCompareAndMaskUnaryOp only matches X against SETCC (with an all-bits result) when really it could accept anything that ComputeNumSignBits says is all-bits.

Noticed while investigating mask promotion issues in PR45808




More information about the All-commits mailing list