commit | 4f4b87e93849eddd82a11c0d41c760aa6a5e8c31 | [log] [tgz] |
---|---|---|
author | Guozhi Wei <carrot@google.com> | Thu May 19 21:07:01 2016 +0000 |
committer | Guozhi Wei <carrot@google.com> | Thu May 19 21:07:01 2016 +0000 |
tree | 1aef936391662507f38b2e777c2af6061469efbb | |
parent | 890e6002dc17f7af46ec57879e31048c79829156 [diff] |
[InstCombine] Avoid combining the bitcast of a var that is used as both address and result of load instructions This patch fixes https://llvm.org/bugs/show_bug.cgi?id=27703. If there is a sequence of one or more load instructions, each loaded value is used as address of later load instruction, bitcast is necessary to change the value type, don't optimize it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270135 91177308-0d34-0410-b5e6-96231b3b80d8