llvm.org GIT mirror llvm / 3f74a11
Detect undef value early and save unnecessary NodeMap query. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112864 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 10 years ago
1 changed file(s) with 11 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
40734073 // absolute, but not relative, values are different depending on whether
40744074 // debug info exists.
40754075 ++SDNodeOrder;
4076
4077 // Check if address has undef value.
4078 if (isa(Address) ||
4079 (Address->use_empty() && !isa(Address))) {
4080 SDDbgValue*SDV =
4081 DAG.getDbgValue(Variable, UndefValue::get(Address->getType()),
4082 0, dl, SDNodeOrder);
4083 DAG.AddDbgValue(SDV, 0, false);
4084 return 0;
4085 }
4086
40764087 SDValue &N = NodeMap[Address];
40774088 if (!N.getNode() && isa(Address))
40784089 // Check unused arguments map.