projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a34e10
)
LowerBitSets: Don't bother to do any work if the llvm.bitset.test intrinsic is unused.
author
Peter Collingbourne
<peter@pcc.me.uk>
Wed, 3 Feb 2016 03:48:46 +0000
(
03:48
+0000)
committer
Peter Collingbourne
<peter@pcc.me.uk>
Wed, 3 Feb 2016 03:48:46 +0000
(
03:48
+0000)
llvm-svn: 259625
llvm/lib/Transforms/IPO/LowerBitSets.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/IPO/LowerBitSets.cpp
b/llvm/lib/Transforms/IPO/LowerBitSets.cpp
index
92eaf9f
..
7b9879c
100644
(file)
--- a/
llvm/lib/Transforms/IPO/LowerBitSets.cpp
+++ b/
llvm/lib/Transforms/IPO/LowerBitSets.cpp
@@
-920,7
+920,7
@@
void LowerBitSets::buildBitSetsFromDisjointSet(
bool LowerBitSets::buildBitSets() {
Function *BitSetTestFunc =
M->getFunction(Intrinsic::getName(Intrinsic::bitset_test));
- if (!BitSetTestFunc)
+ if (!BitSetTestFunc
|| BitSetTestFunc->use_empty()
)
return false;
// Equivalence class set containing bitsets and the globals they reference.