summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMSubtarget.cpp
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-05-23 17:29:48 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-05-23 17:29:48 +0000
commitbe6a9a151adb3e9b47f45a10d31f451fd461720f (patch)
tree82bb0b35d97239e3076ef46056d41889d04b63c4 /llvm/lib/Target/ARM/ARMSubtarget.cpp
parentba74e5daa58fd7d65e5ff2929b7712e83299c097 (diff)
downloadbcm5719-llvm-be6a9a151adb3e9b47f45a10d31f451fd461720f.tar.gz
bcm5719-llvm-be6a9a151adb3e9b47f45a10d31f451fd461720f.zip
Fix PR4254.
The DAGCombiner created a negative shiftamount, stored in an unsigned variable. Later the optimizer eliminated the shift entirely as being undefined. Example: (srl (shl X, 56) 48). ShiftAmt is 4294967288. Fix it by checking that the shiftamount is positive, and storing in a signed variable. llvm-svn: 72331
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud