mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 02:33:44 +00:00
Insert a sanity check on the combining of x86 truncing-store nodes. This comes to replace the problematic check that was removed in r139995.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140246 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5b8d20ddd
commit
9c6cdf4c1c
@ -13563,6 +13563,9 @@ static SDValue PerformSTORECombine(SDNode *N, SelectionDAG &DAG,
|
||||
|
||||
// From, To sizes and ElemCount must be pow of two
|
||||
if (!isPowerOf2_32(NumElems * FromSz * ToSz)) return SDValue();
|
||||
// We are going to use the original vector elt for storing.
|
||||
// accumulated smaller vector elements must be a multiple of the store size.
|
||||
if (0 != (NumElems * FromSz) % ToSz) return SDValue();
|
||||
|
||||
unsigned SizeRatio = FromSz / ToSz;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user