commit | 48164ed24df7df33e416b83d40135ad97a6db489 | [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 | fc42d0b31fd270149c909887b455c33ac6fd0567 | |
parent | 1c768816d7bef592d9922569501cbab663d2cae7 [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216597 91177308-0d34-0410-b5e6-96231b3b80d8