[PATCH] D114126: [PatternMatch] Create match method to track uses complexity

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 9 15:21:30 PST 2021


rampitec updated this revision to Diff 393299.
rampitec edited the summary of this revision.
rampitec added a comment.

- Fixed subexpression cost handling, any use at root now marks each value in subexpression used.
- Changed all patterns foldComplexAndOrPatterns.
- Added tests.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114126/new/

https://reviews.llvm.org/D114126

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114126.393299.patch
Type: text/x-patch
Size: 75724 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211209/2f130537/attachment.bin>


More information about the llvm-commits mailing list