[all-commits] [llvm/llvm-project] 5bc391: [SelectionDAG] Use getVectorElementPointer in DAGC...
Craig Topper via All-commits
all-commits at lists.llvm.org
Mon Dec 4 11:11:52 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5bc391a7c96a58929794ec1dc664b966c0a03d09
https://github.com/llvm/llvm-project/commit/5bc391a7c96a58929794ec1dc664b966c0a03d09
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-12-04 (Mon, 04 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.
More information about the All-commits
mailing list