[DAGCombine] Moved X86 rotate_amount % bitwidth == 0 early out to DAGCombiner
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 13 Dec 2018 12:23:32 +0000 (12:23 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 13 Dec 2018 12:23:32 +0000 (12:23 +0000)
commitab973a45b9796500955202ca606cf0bed083109b
tree4baba8d1f76529cf764a83e3a2160c9c50844668
parent1a4e2cc27a6cade6bf851edd93856f5a8c8482f0
[DAGCombine] Moved X86 rotate_amount % bitwidth == 0 early out to DAGCombiner

Remove common code from custom lowering (code is still safe if somehow a zero value gets used).

llvm-svn: 349028
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp