mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
Forgot a check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -3428,7 +3428,7 @@ SDOperand DAGCombiner::visitSTORE(SDNode *N) {
|
|||||||
MVT::ValueType SVT = Value.getOperand(0).getValueType();
|
MVT::ValueType SVT = Value.getOperand(0).getValueType();
|
||||||
unsigned OrigAlign = TLI.getTargetMachine().getTargetData()->
|
unsigned OrigAlign = TLI.getTargetMachine().getTargetData()->
|
||||||
getPrefTypeAlignment(getTypeForValueType(SVT));
|
getPrefTypeAlignment(getTypeForValueType(SVT));
|
||||||
if (Align <= OrigAlign)
|
if (Align <= OrigAlign && TLI.isOperationLegal(ISD::STORE, SVT))
|
||||||
return DAG.getStore(Chain, Value.getOperand(0), Ptr, ST->getSrcValue(),
|
return DAG.getStore(Chain, Value.getOperand(0), Ptr, ST->getSrcValue(),
|
||||||
ST->getSrcValueOffset());
|
ST->getSrcValueOffset());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user