[all-commits] [llvm/llvm-project] 808d9d: [InstCombine] Add vector support to icmp(add(X, C1)...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Mar 10 05:31:08 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 808d9d260bdfbd485082d71f120661dfa7a8405e
      https://github.com/llvm/llvm-project/commit/808d9d260bdfbd485082d71f120661dfa7a8405e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-03-10 (Thu, 10 Mar 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/icmp.ll

  Log Message:
  -----------
  [InstCombine] Add vector support to icmp(add(X,C1),add(Y,C2)) -> icmp(add(X,C1-C2),Y) fold

As discussed on Issue #32161 this fold can be generalized a lot more than it currently is, but this patch at least adds vector support.

Differential Revision: https://reviews.llvm.org/D121358




More information about the All-commits mailing list