diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-13 17:07:06 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-13 17:07:06 +0000 |
commit | 8a2dae57e229dc0b6e3ae6582709f96696483143 (patch) | |
tree | c1f204ade61583ab15edf1284398d6085b293c4f /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | 9d2d053e11c1b5ddcd72f88f8a52d87d1dd74773 (diff) | |
download | bcm5719-llvm-8a2dae57e229dc0b6e3ae6582709f96696483143.tar.gz bcm5719-llvm-8a2dae57e229dc0b6e3ae6582709f96696483143.zip |
Add a few comments.
llvm-svn: 101148
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index b3e79a19e1e..9b67b57c926 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -94,9 +94,11 @@ unsigned FastISel::getRegForValue(Value *V) { Reg = getRegForValue(Constant::getNullValue(TD.getIntPtrType(V->getContext()))); } else if (ConstantFP *CF = dyn_cast<ConstantFP>(V)) { + // Try to emit the constant directly. Reg = FastEmit_f(VT, VT, ISD::ConstantFP, CF); if (!Reg) { + // Try to emit the constant by using an integer constant with a cast. const APFloat &Flt = CF->getValueAPF(); EVT IntVT = TLI.getPointerTy(); @@ -320,6 +322,7 @@ bool FastISel::SelectCall(User *I) { Function *F = cast<CallInst>(I)->getCalledFunction(); if (!F) return false; + // Handle selected intrinsic function calls. unsigned IID = F->getIntrinsicID(); switch (IID) { default: break; @@ -440,6 +443,8 @@ bool FastISel::SelectCall(User *I) { break; } } + + // An arbitrary call. Bail. return false; } |