[PATCH] D50222: [CodeGen] [SelectionDAG] More efficient code for X % C == 0
Dmytro Shynkevych via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 5 10:10:37 PDT 2018
hermord updated this revision to Diff 159227.
hermord added a comment.
@majnemer Thanks; this was, in fact, incorrect. Now, to simplify the logic, the absolute value of D is taken and lshr is used.
Repository:
rL LLVM
https://reviews.llvm.org/D50222
Files:
include/llvm/CodeGen/TargetLowering.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/Hexagon/swp-const-tc2.ll
test/CodeGen/X86/jump_sign.ll
test/CodeGen/X86/rem.ll
test/CodeGen/X86/vselect-avx.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50222.159227.patch
Type: text/x-patch
Size: 14847 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180805/08009cad/attachment.bin>
More information about the llvm-commits
mailing list