mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 13:51:37 +00:00
LowerBitSets: Don't bother to do any work if the llvm.bitset.test intrinsic is unused.
llvm-svn: 259625
This commit is contained in:
parent
6410c66883
commit
7f6faddfa9
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user