aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-03-26 15:36:14 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-03-26 15:36:14 +0000
commitfdc6177490404b7dac178f24671fb3ea39bae791 (patch)
treea557d3664a99583f911f118e26f8259066dac045 /lib/Transforms/InstCombine/InstCombineVectorOps.cpp
parenta8c8c45838cefb02f5562a266a11089b701d72cd (diff)
downloadexternal_llvm-fdc6177490404b7dac178f24671fb3ea39bae791.zip
external_llvm-fdc6177490404b7dac178f24671fb3ea39bae791.tar.gz
external_llvm-fdc6177490404b7dac178f24671fb3ea39bae791.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineVectorOps.cpp')
0 files changed, 0 insertions, 0 deletions