Revert "Revert r206045, "Fix shift by constants for vector.""
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 14 Apr 2014 21:50:37 +0000 (21:50 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 14 Apr 2014 21:50:37 +0000 (21:50 +0000)
commit448a1a07348dad12592cce2fe4d9413024b81308
treecc8b377ffa13e0453e2e181a7157c7b4135a8e06
parent05620e5439d73e5ae43092d353bcb2c6a50d7eca
Revert "Revert r206045, "Fix shift by constants for vector.""

Fix cases where the Value itself is used, and not the constant value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206214 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombine.h
lib/Transforms/InstCombine/InstCombineShifts.cpp
test/Transforms/InstCombine/pr19420.ll [new file with mode: 0644]
test/Transforms/InstCombine/shift.ll