[all-commits] [llvm/llvm-project] 09be76: [InstCombine] visitXor - refactor ((X^C1)>>C2)^C3 ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Oct 15 06:38:44 PDT 2020


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

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

  Log Message:
  -----------
  [InstCombine] visitXor - refactor ((X^C1)>>C2)^C3 -> (X>>C2)^((C1>>C2)^C3) fold. NFCI.

This is still ConstantInt-only (scalar) but is refactored to use PatternMatch to make adding vector support in the future relatively trivial.




More information about the All-commits mailing list