OSDN Git Service

Split up ARM LowerShift function.
authorBob Wilson <bob.wilson@apple.com>
Thu, 18 Nov 2010 21:16:28 +0000 (21:16 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 18 Nov 2010 21:16:28 +0000 (21:16 +0000)
commitd5448bb6e845bd6c2dcb98156f49a73842759ab0
tree2cce86466d125bd65c14f5df2794ed24cb76b13a
parent612fb5b9a6472f8e1cea8a4f771238840f4eaa1c
Split up ARM LowerShift function.
This function was being called from two different places for completely
unrelated reasons.  During type legalization, it was called to expand 64-bit
shift operations.  During operation legalization, it was called to handle
Neon vector shifts.  The vector shift code was not written to check for
illegal types, since it was assumed to be only called after type legalization.
Fixed this by splitting off the 64-bit shift expansion into a separate
function.  I don't have a particular testcase for this; I just noticed it
by inspection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119738 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp