| commit | 11ca2971e88f37dc1b40f00542cb6228e255fee4 | [log] [tgz] |
|---|---|---|
| author | David Majnemer <david.majnemer@gmail.com> | Wed Aug 27 20:08:34 2014 +0000 |
| committer | David Majnemer <david.majnemer@gmail.com> | Wed Aug 27 20:08:34 2014 +0000 |
| tree | a5f723b13e06407de3cda365680ad038ae39df81 | |
| parent | 48c82400edc6244073fa90dcd805b23e0d077d79 [diff] |
InstSimplify: Don't simplify gep X, (Y-X) to Y if types differ It's incorrect to perform this simplification if the types differ. A bitcast would need to be inserted for this to work. This fixes PR20771. llvm-svn: 216597