[all-commits] [llvm/llvm-project] f787fe: [EarlyCSE] Remove unnecessary operand swap.

darkbuck via All-commits all-commits at lists.llvm.org
Thu Sep 10 23:14:26 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f787fe15d8e1cb63b40235e781cd7c2e130bbcd6
      https://github.com/llvm/llvm-project/commit/f787fe15d8e1cb63b40235e781cd7c2e130bbcd6
  Author: Michael Liao <michael.hliao at gmail.com>
  Date:   2020-09-11 (Fri, 11 Sep 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/EarlyCSE.cpp
    M llvm/test/CodeGen/AMDGPU/sad.ll

  Log Message:
  -----------
  [EarlyCSE] Remove unnecessary operand swap.

- As min/max are commutative operators, there is no need to swap
  operands. That breaks the convention calculating the hash value.




More information about the All-commits mailing list