[all-commits] [llvm/llvm-project] 3e1d2c: [InstCombine] Fix or of commuted foldable predicates

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Apr 22 03:33:40 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e1d2c352c1fb9fb7022344fb4e5639b4f5b1c45
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-04-22 (Fri, 22 Apr 2022)

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

  Log Message:
  [InstCombine] Fix or of commuted foldable predicates

1d90e530442477de247dcb613f5176fe7e9beded switch this code to store
the predicates and operands in variables, but retained a
swapOperands() call here. Thus the commuted cases were no longer
folded. Additionally, as the change was not reported, the next
InstCombine iteration would not pick it up either.

More information about the All-commits mailing list