[all-commits] [llvm/llvm-project] 470c5b: [InstSimplify][InstCombine] Remove unnecessary `m_...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Wed Feb 14 00:40:49 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 470c5b8011b94ecb0ee8dbdb34ab8d680f652f70
      https://github.com/llvm/llvm-project/commit/470c5b8011b94ecb0ee8dbdb34ab8d680f652f70
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-02-14 (Wed, 14 Feb 2024)

  Changed paths:
    M llvm/lib/Analysis/IVDescriptors.cpp
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/lib/IR/IntrinsicInst.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
    M llvm/test/Transforms/InstSimplify/compare.ll

  Log Message:
  -----------
  [InstSimplify][InstCombine] Remove unnecessary `m_c_*` matchers. (#81712)

This patch removes unnecessary `m_c_*` matchers since we always
canonicalize `commutive_op Cst, X` into `commutive_op X, Cst`.

Compile-time impact:
https://llvm-compile-time-tracker.com/compare.php?from=bfc0b7c6891896ee8e9818f22800472510093864&to=d27b058bb9acaa43d3cadbf3cd889e8f79e5c634&stat=instructions:u




More information about the All-commits mailing list