[all-commits] [llvm/llvm-project] 30420b: [IRSim] Make sure that commutative intrinsics are ...

Andrew Litteken via All-commits all-commits at lists.llvm.org
Wed Feb 2 11:25:34 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 30420bc344151eaea6fa9d32cd23a64feee5401b
      https://github.com/llvm/llvm-project/commit/30420bc344151eaea6fa9d32cd23a64feee5401b
  Author: Andrew Litteken <andrew.litteken at gmail.com>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

  Changed paths:
    M llvm/lib/Analysis/IRSimilarityIdentifier.cpp
    M llvm/unittests/Analysis/IRSimilarityIdentifierTest.cpp

  Log Message:
  -----------
  [IRSim] Make sure that commutative intrinsics are treated as function calls without commutativity

Created to fix: https://github.com/llvm/llvm-project/issues/53537

Some intrinsics functions are considered commutative since they are performing operations like addition or multiplication. Some of these have extra parameters to provide extra information that are not part of the operation itself and are not commutative. This makes sure that if an instruction that is an intrinsic takes the non commutative path to handle this case.

Reviewer: paquette

Closes Issue #53537

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




More information about the All-commits mailing list