Bug 829277: Limit the number of instructions that the truncation optimization can work on. (r=dvander)