diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-01-17 07:00:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-01-17 07:00:52 +0000 |
| commit | 0bd4893a0726889b942405262e53d06cf3fe3be8 (patch) | |
| tree | cf2cf61553bc58927d67b9140248a08ed6664b74 /lib/Target/IA64 | |
| parent | f51a9d4b3c3dc83b1184aa434e54db77c9ac992c (diff) | |
| download | external_llvm-0bd4893a0726889b942405262e53d06cf3fe3be8.zip external_llvm-0bd4893a0726889b942405262e53d06cf3fe3be8.tar.gz external_llvm-0bd4893a0726889b942405262e53d06cf3fe3be8.tar.bz2 | |
* Introduce a new SelectionDAG::getIntPtrConstant method
and switch various codegen pieces and the X86 backend over
to using it.
* Add some comments to SelectionDAGNodes.h
* Introduce a second argument to FP_ROUND, which indicates
whether the FP_ROUND changes the value of its input. If
not it is safe to xform things like fp_extend(fp_round(x)) -> x.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/IA64')
| -rw-r--r-- | lib/Target/IA64/IA64ISelLowering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/IA64/IA64ISelLowering.cpp b/lib/Target/IA64/IA64ISelLowering.cpp index b6b6c25..46aadb1 100644 --- a/lib/Target/IA64/IA64ISelLowering.cpp +++ b/lib/Target/IA64/IA64ISelLowering.cpp @@ -193,7 +193,8 @@ IA64TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) { argt = newroot = DAG.getCopyFromReg(DAG.getRoot(), argVreg[count], MVT::f64); if (I->getType() == Type::FloatTy) - argt = DAG.getNode(ISD::FP_ROUND, MVT::f32, argt); + argt = DAG.getNode(ISD::FP_ROUND, MVT::f32, argt, + DAG.getIntPtrConstant(0)); break; case MVT::i1: // NOTE: as far as C abi stuff goes, // bools are just boring old ints |
