[PATCH] D45828: [PatternMatch] Stabilize the matching order of commutative matchers

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 27 14:11:48 PDT 2018


lebedev.ri updated this revision to Diff 144395.
lebedev.ri added a comment.

Make it `Value *const &V`, not `Value *&V`, for symmetry with `m_Specific()`, which takes `const Value *V`, not `Value *V`.


Repository:
  rL LLVM

https://reviews.llvm.org/D45828

Files:
  include/llvm/IR/PatternMatch.h
  lib/Analysis/ValueTracking.cpp
  lib/Transforms/InstCombine/InstCombineAddSub.cpp
  lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  test/Transforms/InstCombine/and-or-not.ll
  test/Transforms/InstCombine/or-xor.ll
  unittests/IR/PatternMatch.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45828.144395.patch
Type: text/x-patch
Size: 14200 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180427/150c55d5/attachment.bin>


More information about the llvm-commits mailing list