mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-25 13:27:52 +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() {
|
bool LowerBitSets::buildBitSets() {
|
||||||
Function *BitSetTestFunc =
|
Function *BitSetTestFunc =
|
||||||
M->getFunction(Intrinsic::getName(Intrinsic::bitset_test));
|
M->getFunction(Intrinsic::getName(Intrinsic::bitset_test));
|
||||||
if (!BitSetTestFunc)
|
if (!BitSetTestFunc || BitSetTestFunc->use_empty())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Equivalence class set containing bitsets and the globals they reference.
|
// Equivalence class set containing bitsets and the globals they reference.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user