summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-01-23 21:31:16 +0000
committerChris Lattner <sabre@nondot.org>2003-01-23 21:31:16 +0000
commit98034fa4079fecd7e506d3890412158dd7ae5711 (patch)
tree75d3b4447cba2affc3033d62adbf34decc3078a5
parent9288f1a92833ba08d3c49767137c0c8be58eef56 (diff)
downloadbcm5719-llvm-98034fa4079fecd7e506d3890412158dd7ae5711.tar.gz
bcm5719-llvm-98034fa4079fecd7e506d3890412158dd7ae5711.zip
Slight efficiency improvement
llvm-svn: 5418
-rw-r--r--llvm/lib/Analysis/DataStructure/Local.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp
index 23b9bea4ebd..f40080a9139 100644
--- a/llvm/lib/Analysis/DataStructure/Local.cpp
+++ b/llvm/lib/Analysis/DataStructure/Local.cpp
@@ -393,11 +393,8 @@ void GraphBuilder::visitCallInst(CallInst &CI) {
}
void GraphBuilder::visitFreeInst(FreeInst &FI) {
- DSNodeHandle Dest = getValueDest(*FI.getOperand(0));
- if (Dest.getNode() == 0) return;
-
// Mark that the node is written to...
- Dest.getNode()->NodeType |= DSNode::Modified;
+ getValueDest(*FI.getOperand(0)).getNode()->NodeType |= DSNode::Modified;
}
/// Handle casts...
OpenPOWER on IntegriCloud