]> granicus.if.org Git - llvm/commit
[DAGCombine] Fix issue with out of bound constant rotation (PR33828)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 18 Jul 2017 12:31:46 +0000 (12:31 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 18 Jul 2017 12:31:46 +0000 (12:31 +0000)
commit922426e8d060f7a7b194c34ab2062128e0ceee75
tree70ef06a5c1bbb019afb35d8ef2dab2ca8d5b2008
parent4fad2262edd14781abb5d4935ed7fd7f8ec7ae65
[DAGCombine] Fix issue with out of bound constant rotation (PR33828)

Take the modulo of rotations by a constant greater than or equal to the bit-width

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308302 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/pr33828.ll [new file with mode: 0644]