[all-commits] [llvm/llvm-project] ef64ba: [InstCombine] GEPOperator::accumulateConstantOffse...
sdesmalen-arm via All-commits
all-commits at lists.llvm.org
Wed Mar 18 07:59:12 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ef64ba831194c7deac8882a325ea9bea64eb612a
https://github.com/llvm/llvm-project/commit/ef64ba831194c7deac8882a325ea9bea64eb612a
Author: Sander de Smalen <sander.desmalen at arm.com>
Date: 2020-03-18 (Wed, 18 Mar 2020)
Changed paths:
M llvm/lib/IR/Operator.cpp
M llvm/test/Transforms/InstCombine/gep-vector.ll
Log Message:
-----------
[InstCombine] GEPOperator::accumulateConstantOffset does not support scalable vectors
Avoid transforming:
%0 = bitcast i8* %base to <vscale x 16 x i8>*
%1 = getelementptr <vscale x 16 x i8>, <vscale x 16 x i8>* %0, i64 1
into:
%0 = getelementptr i8, i8* %base, i64 16
%1 = bitcast i8* %0 to <vscale x 16 x i8>*
Reviewers: efriedma, ctetreau
Reviewed By: efriedma
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76236
More information about the All-commits
mailing list