mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 22:43:29 +00:00
Fixed potential bug if the source and target of a bit convert have different alignment
llvm-svn: 53590
This commit is contained in:
parent
0d582485f9
commit
834c054b1d
@ -7015,7 +7015,9 @@ void SelectionDAGLegalize::SplitVectorOp(SDOperand Op, SDOperand &Lo,
|
||||
// The input is a scalar or single-element vector.
|
||||
// Lower to a store/load so that it can be split.
|
||||
// FIXME: this could be improved probably.
|
||||
SDOperand Ptr = DAG.CreateStackTemporary(InOp.getValueType());
|
||||
unsigned LdAlign = TLI.getTargetData()->getPrefTypeAlignment(
|
||||
Op.getValueType().getTypeForMVT());
|
||||
SDOperand Ptr = DAG.CreateStackTemporary(InOp.getValueType(), LdAlign);
|
||||
int FI = cast<FrameIndexSDNode>(Ptr.Val)->getIndex();
|
||||
|
||||
SDOperand St = DAG.getStore(DAG.getEntryNode(),
|
||||
|
Loading…
Reference in New Issue
Block a user