[all-commits] [llvm/llvm-project] 2a2126: [SelectionDAG] Use getVectorElementPointer in DAGC...
Craig Topper via All-commits
all-commits at lists.llvm.org
Thu Dec 14 20:25:40 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2a21260ea8a5cfb7d2e703d991a3e772fd2ad66c
https://github.com/llvm/llvm-project/commit/2a21260ea8a5cfb7d2e703d991a3e772fd2ad66c
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-12-14 (Thu, 14 Dec 2023)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/test/CodeGen/Mips/msa/basic_operations.ll
M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-insert.ll
M llvm/test/CodeGen/X86/pr59980.ll
Log Message:
-----------
[SelectionDAG] Use getVectorElementPointer in DAGCombiner::replaceStoreOfInsertLoad. (#74249)
This ensures we clip the index to be in bounds of the vector we are
inserting into. If the index is out of bounds the results of the insert
element is poison. If we don't clip the index we can write memory that
was not part of the original store.
Fixes #74248 #75557.
More information about the All-commits
mailing list