Fixed problem 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@53031 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mon P Wang
2008-07-02 17:07:12 +00:00
parent 349db1738d
commit bee98c66c0
3 changed files with 23 additions and 15 deletions

View File

@ -574,9 +574,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 = 0);
/// FoldSetCC - Constant fold a setcc to true or false.
SDOperand FoldSetCC(MVT VT, SDOperand N1,
SDOperand N2, ISD::CondCode Cond);