diff options
author | Manoj Gupta <manojgupta@google.com> | 2017-09-01 15:36:00 +0000 |
---|---|---|
committer | Manoj Gupta <manojgupta@google.com> | 2017-09-01 15:36:00 +0000 |
commit | 6b54c7e11beb2e050de4f912d182938ce81f4221 (patch) | |
tree | f4a3f6853c8f7808b45b5eb85298505638d2db84 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | e196e94eca323739086fd7bd6dca321e66c5ed58 (diff) | |
download | bcm5719-llvm-6b54c7e11beb2e050de4f912d182938ce81f4221.tar.gz bcm5719-llvm-6b54c7e11beb2e050de4f912d182938ce81f4221.zip |
[LoopVectorizer] Use two step casting for float to pointer types.
Summary:
LoopVectorizer is creating casts between vec<ptr> and vec<float> types
on ARM when compiling OpenCV. Since, tIs is illegal to directly cast a
floating point type to a pointer type even if the types have same size
causing a crash. Fix the crash using a two-step casting by bitcasting
to integer and integer to pointer/float.
Fixes PR33804.
Reviewers: mkuper, Ayal, dlj, rengolin, srhines
Reviewed By: rengolin
Subscribers: aemerson, kristof.beyls, mkazantsev, Meinersbur, rengolin, mzolotukhin, llvm-commits
Differential Revision: https://reviews.llvm.org/D35498
llvm-svn: 312331
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions