diff options
author | Guozhi Wei <carrot@google.com> | 2016-05-19 21:07:01 +0000 |
---|---|---|
committer | Guozhi Wei <carrot@google.com> | 2016-05-19 21:07:01 +0000 |
commit | b1d37199ccfad5654d587cb9a81bcfde613315b4 (patch) | |
tree | 0fc5dd31d440f74dfcbafc103c5649288309d355 /llvm/lib/ProfileData/SampleProfWriter.cpp | |
parent | cfe75fa72e8460fb7bd7c131240f874f50767fee (diff) | |
download | bcm5719-llvm-b1d37199ccfad5654d587cb9a81bcfde613315b4.tar.gz bcm5719-llvm-b1d37199ccfad5654d587cb9a81bcfde613315b4.zip |
[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.
llvm-svn: 270135
Diffstat (limited to 'llvm/lib/ProfileData/SampleProfWriter.cpp')
0 files changed, 0 insertions, 0 deletions