mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-28 07:27:08 +00:00
99b1003c2e
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