projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[RuntimeDyld] Allow processRelocationRef to process more than one relocation entry...
[oota-llvm.git]
/
lib
/
Analysis
/
CodeMetrics.cpp
diff --git
a/lib/Analysis/CodeMetrics.cpp
b/lib/Analysis/CodeMetrics.cpp
index 4a05888170a5a04ebfd2a6db48d3680fa8bea0d9..4c8a093684f62c59cd5799b627fcc794fc8fc176 100644
(file)
--- a/
lib/Analysis/CodeMetrics.cpp
+++ b/
lib/Analysis/CodeMetrics.cpp
@@
-65,11
+65,11
@@
void CodeMetrics::analyzeBasicBlock(const BasicBlock *BB,
++NumVectorInsts;
if (const CallInst *CI = dyn_cast<CallInst>(II))
++NumVectorInsts;
if (const CallInst *CI = dyn_cast<CallInst>(II))
- if (CI->
hasFnAttr(Attribute::NoDuplicate
))
+ if (CI->
cannotDuplicate(
))
notDuplicatable = true;
if (const InvokeInst *InvI = dyn_cast<InvokeInst>(II))
notDuplicatable = true;
if (const InvokeInst *InvI = dyn_cast<InvokeInst>(II))
- if (InvI->
hasFnAttr(Attribute::NoDuplicate
))
+ if (InvI->
cannotDuplicate(
))
notDuplicatable = true;
NumInsts += TTI.getUserCost(&*II);
notDuplicatable = true;
NumInsts += TTI.getUserCost(&*II);