Fold the add (ptr, offset) into ptr[offset] only if the offset is small enough. movwi...
authorSanjiv Gupta <sanjiv.gupta@microchip.com>
Tue, 23 Jun 2009 07:10:19 +0000 (07:10 +0000)
committerSanjiv Gupta <sanjiv.gupta@microchip.com>
Tue, 23 Jun 2009 07:10:19 +0000 (07:10 +0000)
commitae99227ef9c68b6cedcb2ae5971fd2072b598d49
tree0f15093b1efe6c993610a0590f7fce8a2f019a3e
parent8dfbe6c853e3e48b6e7b5957a4e028835ffe4400
Fold the add (ptr, offset) into ptr[offset] only if the offset is small enough. movwi and moviw allow value of 5-bits only (i.e. 32).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73953 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PIC16/PIC16ISelLowering.cpp