llvm-mirror/include
Bob Wilson d433cf7463 Avoid illegal integer promotion in fastisel
Stop folding constant adds into GEP when the type size doesn't match.
Otherwise, the adds' operands are effectively being promoted, changing the
conditions of an overflow.  Results are different when:

    sext(a) + sext(b) != sext(a + b)

Problem originally found on x86-64, but also fixed issues with ARM and PPC,
which used similar code.

<rdar://problem/15292280>

Patch by Duncan Exon Smith!

llvm-svn: 194840
2013-11-15 19:09:27 +00:00
..
llvm Avoid illegal integer promotion in fastisel 2013-11-15 19:09:27 +00:00
llvm-c [llvm-c] Add missing const qualifiers to LLVMCreateTargetMachine 2013-11-15 02:51:12 +00:00