[PATCH] D45842: [Reassociate] swap binop operands to increase factoring potential
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 27 15:20:22 PDT 2018
spatel updated this revision to Diff 144408.
spatel added a comment.
Patch updated:
1. Extract discardDebugInfo() as a helper function and use it.
2. Added a test case with debug info (baseline added at https://reviews.llvm.org/rL331083).
3. Use another m_BinOp to shrink the code.
https://reviews.llvm.org/D45842
Files:
include/llvm/Transforms/Scalar/Reassociate.h
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/Reassociate/matching-binops.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45842.144408.patch
Type: text/x-patch
Size: 13029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180427/2c8e8a18/attachment.bin>
More information about the llvm-commits
mailing list