[all-commits] [llvm/llvm-project] d89196: [X86] combineMOVMSK - merge movmsk(icmp_eq(and(x, c...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Apr 3 09:18:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d891968f10c42568b2c5d19fa22802ee85d2bd7d
      https://github.com/llvm/llvm-project/commit/d891968f10c42568b2c5d19fa22802ee85d2bd7d
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-04-03 (Mon, 03 Apr 2023)

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

  Log Message:
  -----------
  [X86] combineMOVMSK - merge movmsk(icmp_eq(and(x,c1),c1)) and movmsk(icmp_eq(and(x,c1),0)) folds

Use the same value tracking implementation for both, removing hardcoded PCMPEQ(AND(X,C),C) pattern so to handle bitcasted logic/constants.




More information about the All-commits mailing list