[InstCombine] fix constant to be signed for signed comparisons
authorSanjay Patel <spatel@rotateright.com>
Tue, 17 May 2016 18:38:55 +0000 (18:38 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 17 May 2016 18:38:55 +0000 (18:38 +0000)
commit86564cad068ed1bb49959b111c032153dc9c271e
tree2006dcea57cc095494e73a8428574eb804c9fa35
parenta7445f1b5ec28666d5a5b51210e97572c73f32c3
[InstCombine] fix constant to be signed for signed comparisons

This bug was introduced in r269728 and is the likely cause of many stage 2 ubsan bot failures.
I'll add a test in a follow-up commit assuming this fixes things properly.

llvm-svn: 269797
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp