diff options
| author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-03-26 15:36:14 +0000 |
|---|---|---|
| committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-03-26 15:36:14 +0000 |
| commit | 8a51d8ea95b0fe1362abd3e276cdb4f2d06678da (patch) | |
| tree | d0833e81e258bf1d2292dede6d2f4d83e473e9d9 /clang/lib/Serialization/ASTWriter.cpp | |
| parent | f299668aeb9cfcbae97b2054b8d18b7060651b80 (diff) | |
| download | bcm5719-llvm-8a51d8ea95b0fe1362abd3e276cdb4f2d06678da.tar.gz bcm5719-llvm-8a51d8ea95b0fe1362abd3e276cdb4f2d06678da.zip | |
Make InstCombineCasts.cpp:OptimizeIntToFloatBitCast endian safe.
The OptimizeIntToFloatBitCast converts shift-truncate sequences
into extractelement operations. The computation of the element
index to be used in the resulting operation is currently only
correct for little-endian targets.
This commit fixes the element index computation to be correct
for big-endian targets as well. If the target byte order is
unknown, the optimization cannot be performed at all.
llvm-svn: 178031
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
0 files changed, 0 insertions, 0 deletions

