[all-commits] [llvm/llvm-project] 3c1f0e: [InstSimplify] Add constant fold for extractelemen...
CarolineConcatto via All-commits
all-commits at lists.llvm.org
Thu Jun 10 04:42:34 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3c1f0e9ef89f7c49fdf383e6b01a61be04614a38
https://github.com/llvm/llvm-project/commit/3c1f0e9ef89f7c49fdf383e6b01a61be04614a38
Author: Caroline Concatto <caroline.concatto at arm.com>
Date: 2021-06-10 (Thu, 10 Jun 2021)
Changed paths:
M llvm/lib/IR/ConstantFold.cpp
M llvm/test/Transforms/InstCombine/gep-vector-indices.ll
M llvm/test/Transforms/InstSimplify/ConstProp/extractelement-vscale.ll
Log Message:
-----------
[InstSimplify] Add constant fold for extractelement + splat for scalable vectors
This patch allows that scalable vector can fold extractelement and constant splat
only when the lane index is lower than the minimum number of elements of the vector.
Differential Revision: https://reviews.llvm.org/D103180
More information about the All-commits
mailing list