diff options
author | Daniel Neilson <dneilson@azul.com> | 2018-05-01 15:35:08 +0000 |
---|---|---|
committer | Daniel Neilson <dneilson@azul.com> | 2018-05-01 15:35:08 +0000 |
commit | 9e4bbe801a79030934627ceafca79c75f45eb58a (patch) | |
tree | 007da645eaf7badfa0b4afe87e1c79c05347a22f /llvm/test/Transforms/LoopVectorize/float-induction.ll | |
parent | 969d63ea8c5820d1325ad27205fc34c4f5030a54 (diff) | |
download | bcm5719-llvm-9e4bbe801a79030934627ceafca79c75f45eb58a.tar.gz bcm5719-llvm-9e4bbe801a79030934627ceafca79c75f45eb58a.zip |
[LV] Preserve inbounds on created GEPs
Summary:
This is a fix for PR23997.
The loop vectorizer is not preserving the inbounds property of GEPs that it creates.
This is inhibiting some optimizations. This patch preserves the inbounds property in
the case where a load/store is being fed by an inbounds GEP.
Reviewers: mkuper, javed.absar, hsaito
Reviewed By: hsaito
Subscribers: dcaballe, hsaito, llvm-commits
Differential Revision: https://reviews.llvm.org/D46191
llvm-svn: 331269
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize/float-induction.ll')
-rw-r--r-- | llvm/test/Transforms/LoopVectorize/float-induction.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/float-induction.ll b/llvm/test/Transforms/LoopVectorize/float-induction.ll index a8b66f44ffa..7d22ba18a28 100644 --- a/llvm/test/Transforms/LoopVectorize/float-induction.ll +++ b/llvm/test/Transforms/LoopVectorize/float-induction.ll @@ -54,7 +54,7 @@ ; VEC4_INTERL2-NEXT: [[TMP9:%.*]] = getelementptr inbounds float, float* %A, i64 [[INDEX]] ; VEC4_INTERL2-NEXT: [[TMP10:%.*]] = bitcast float* [[TMP9]] to <4 x float>* ; VEC4_INTERL2-NEXT: store <4 x float> [[VEC_IND]], <4 x float>* [[TMP10]], align 4 -; VEC4_INTERL2-NEXT: [[TMP11:%.*]] = getelementptr float, float* [[TMP9]], i64 4 +; VEC4_INTERL2-NEXT: [[TMP11:%.*]] = getelementptr inbounds float, float* [[TMP9]], i64 4 ; VEC4_INTERL2-NEXT: [[TMP12:%.*]] = bitcast float* [[TMP11]] to <4 x float>* ; VEC4_INTERL2-NEXT: store <4 x float> [[STEP_ADD]], <4 x float>* [[TMP12]], align 4 ; VEC4_INTERL2-NEXT: [[INDEX_NEXT]] = add i64 [[INDEX]], 8 |