summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-04-07 01:15:14 +0000
committerDale Johannesen <dalej@apple.com>2010-04-07 01:15:14 +0000
commit5d7f0a0fdde8c9f12895fc18f054d784b01807c2 (patch)
treee6ad25037ce46f94c18a6651d1a20a66a018056f /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
parent1bff99322a6372454617f20c138156bafe1391f6 (diff)
downloadbcm5719-llvm-5d7f0a0fdde8c9f12895fc18f054d784b01807c2.tar.gz
bcm5719-llvm-5d7f0a0fdde8c9f12895fc18f054d784b01807c2.zip
Move printing of target-indepedent DEBUG_VALUE comments
into AsmPrinter. Target-dependent form is still generated by FastISel and still handled in X86 code. llvm-svn: 100596
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 4bf41f28c25..b3e79a19e1e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -332,6 +332,8 @@ bool FastISel::SelectCall(User *I) {
Value *Address = DI->getAddress();
if (!Address)
return true;
+ if (isa<UndefValue>(Address))
+ return true;
AllocaInst *AI = dyn_cast<AllocaInst>(Address);
// Don't handle byval struct arguments or VLAs, for example.
if (!AI) break;
@@ -348,7 +350,7 @@ bool FastISel::SelectCall(User *I) {
return true;
}
case Intrinsic::dbg_value: {
- // This requires target support, but right now X86 is the only Fast target.
+ // This form of DBG_VALUE is target-independent.
DbgValueInst *DI = cast<DbgValueInst>(I);
const TargetInstrDesc &II = TII.get(TargetOpcode::DBG_VALUE);
Value *V = DI->getValue();
OpenPOWER on IntegriCloud