[PATCH] D37121: [DivRemHoist] add a pass to move div/rem pairs into the same block (PR31028)
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 7 09:51:39 PDT 2017
spatel updated this revision to Diff 114195.
spatel added a comment.
Patch updated:
1. If the target doesn't have a divrem instruction, always decompose the rem.
2. Rename everything to 'DivRemPairs' to reflect the greater powers of the pass (open to other suggestions).
3. Improve code comments to better explain how this works.
https://reviews.llvm.org/D37121
Files:
include/llvm/Analysis/TargetTransformInfo.h
include/llvm/Analysis/TargetTransformInfoImpl.h
include/llvm/InitializePasses.h
include/llvm/Transforms/Scalar.h
include/llvm/Transforms/Scalar/DivRemPairs.h
lib/Analysis/TargetTransformInfo.cpp
lib/Passes/PassBuilder.cpp
lib/Passes/PassRegistry.def
lib/Target/X86/X86TargetTransformInfo.cpp
lib/Target/X86/X86TargetTransformInfo.h
lib/Transforms/IPO/PassManagerBuilder.cpp
lib/Transforms/Scalar/CMakeLists.txt
lib/Transforms/Scalar/DivRemPairs.cpp
lib/Transforms/Scalar/Scalar.cpp
test/Other/new-pm-defaults.ll
test/Other/new-pm-thinlto-defaults.ll
test/Transforms/DivRemPairs/div-rem-pairs.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37121.114195.patch
Type: text/x-patch
Size: 28333 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170907/326acc63/attachment.bin>
More information about the llvm-commits
mailing list