]> granicus.if.org Git - llvm/commit
Merging r321991:
authorHans Wennborg <hans@hanshq.net>
Wed, 17 Jan 2018 15:50:27 +0000 (15:50 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 17 Jan 2018 15:50:27 +0000 (15:50 +0000)
commit338216c337ef145a8c8e12fa1ddf6c71ad36bf49
treee8fc1265a6f61d094cb02fce94a5685789c33321
parentc51141594fd4a94580a68576b4af4a1a69562505
Merging r321991:
------------------------------------------------------------------------
r321991 | sam_parker | 2018-01-08 05:21:24 -0800 (Mon, 08 Jan 2018) | 9 lines

[DAGCombine] Fix for PR35761

I had falsely assumed that constant operands would be operand(1) of
the bin ops that may need their constant operand to be masked.

Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=35761

Differential Revision: https://reviews.llvm.org/D41667

------------------------------------------------------------------------

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