diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-07-03 18:20:14 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-07-03 18:20:14 +0000 |
commit | fad8be450dcbc74ff4d6f6de3ed81ee314c3f7a6 (patch) | |
tree | a431d52e1a30fcaf4c62ab88ea567ed47990b3f2 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 633e22b3ee44a43bdcd5cff4c03fa4df3fd049dc (diff) | |
download | bcm5719-llvm-fad8be450dcbc74ff4d6f6de3ed81ee314c3f7a6.tar.gz bcm5719-llvm-fad8be450dcbc74ff4d6f6de3ed81ee314c3f7a6.zip |
Backed out 53031.
llvm-svn: 53110
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 9cce7380fca..c457c4bb767 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1080,17 +1080,16 @@ SDOperand SelectionDAG::getMemOperand(const MachineMemOperand &MO) { /// CreateStackTemporary - Create a stack temporary, suitable for holding the /// specified value type. -SDOperand SelectionDAG::CreateStackTemporary(MVT VT, unsigned minAlign) { +SDOperand SelectionDAG::CreateStackTemporary(MVT VT) { MachineFrameInfo *FrameInfo = getMachineFunction().getFrameInfo(); unsigned ByteSize = VT.getSizeInBits()/8; const Type *Ty = VT.getTypeForMVT(); - unsigned StackAlign = - std::max((unsigned)TLI.getTargetData()->getPrefTypeAlignment(Ty), minAlign); - + unsigned StackAlign = (unsigned)TLI.getTargetData()->getPrefTypeAlignment(Ty); int FrameIdx = FrameInfo->CreateStackObject(ByteSize, StackAlign); return getFrameIndex(FrameIdx, TLI.getPointerTy()); } + SDOperand SelectionDAG::FoldSetCC(MVT VT, SDOperand N1, SDOperand N2, ISD::CondCode Cond) { // These setcc operations always fold. |