diff options
| author | Mon P Wang <wangmp@apple.com> | 2008-07-05 20:40:31 +0000 |
|---|---|---|
| committer | Mon P Wang <wangmp@apple.com> | 2008-07-05 20:40:31 +0000 |
| commit | 364d73ddab43b699ab90240f11b7a2eb5cf69bd8 (patch) | |
| tree | 30eeb56942e5f8572f47c1bb8de7d590e76e10af /include/llvm/CodeGen | |
| parent | 225ca9cdd70de3d12641b0aba7daf6cb568a7ebd (diff) | |
Fixed generating incorrect aligned stores that I backout of r53031
that fixed problems in EmitStackConvert where the source and target type
have different alignment by creating a stack slot with the max
alignment of source and target type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53150 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
| -rw-r--r-- | include/llvm/CodeGen/SelectionDAG.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 7ebc698bad..4f532ba43b 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -589,9 +589,10 @@ public: void dump() const; /// CreateStackTemporary - Create a stack temporary, suitable for holding the - /// specified value type. - SDOperand CreateStackTemporary(MVT VT); - + /// specified value type. If minAlign is specified, the slot size will have + /// at least that alignment. + SDOperand CreateStackTemporary(MVT VT, unsigned minAlign = 1); + /// FoldSetCC - Constant fold a setcc to true or false. SDOperand FoldSetCC(MVT VT, SDOperand N1, SDOperand N2, ISD::CondCode Cond); |
