[PATCH] D41574: [Transforms] Adding a WeakReassociate pass

Omer Paparo Bivas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 28 09:16:48 PDT 2018


opaparo updated this revision to Diff 148823.
opaparo added a comment.
Herald added a subscriber: eraman.

Several changes in this revision:

1. The pass now extends PassInfoMixin<> instead of FunctionPass. A wrapper legacy pass that extends FunctionPass was also added.
2. The pass is now also used in the PassBuilder::buildFunctionSimplificationPipeline flow.
3. Style:
  - Using SmallVectorImpl instead of SmallVector when possible, in order to avoid explicitly stating its size.
  - Using SmallVectorImpl instead of SmallVector when possible, in order to avoid explicitly stating its size.
  - Other miscellaneous small fixes following code review comments.


Repository:
  rL LLVM

https://reviews.llvm.org/D41574

Files:
  include/llvm/InitializePasses.h
  include/llvm/Transforms/Scalar.h
  include/llvm/Transforms/Scalar/WeakReassociate.h
  lib/Passes/PassBuilder.cpp
  lib/Transforms/IPO/PassManagerBuilder.cpp
  lib/Transforms/Scalar/CMakeLists.txt
  lib/Transforms/Scalar/Scalar.cpp
  lib/Transforms/Scalar/WeakReassociate.cpp
  test/Other/new-pm-defaults.ll
  test/Other/new-pm-thinlto-defaults.ll
  test/Other/opt-O2-pipeline.ll
  test/Other/opt-O3-pipeline.ll
  test/Other/opt-Os-pipeline.ll
  test/Transforms/WeakReassociate/or_or_shift.ll
  test/Transforms/WeakReassociate/or_or_xor_and.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41574.148823.patch
Type: text/x-patch
Size: 25925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180528/9d76d7a5/attachment.bin>


More information about the llvm-commits mailing list