forked from OSchip/llvm-project
parent
d1da5cdfee
commit
4f13bbfefc
|
@ -161,9 +161,10 @@ RegUseTracker::DropUse(size_t LUIdx) {
|
||||||
|
|
||||||
bool
|
bool
|
||||||
RegUseTracker::isRegUsedByUsesOtherThan(const SCEV *Reg, size_t LUIdx) const {
|
RegUseTracker::isRegUsedByUsesOtherThan(const SCEV *Reg, size_t LUIdx) const {
|
||||||
if (!RegUsesMap.count(Reg)) return false;
|
RegUsesTy::const_iterator I = RegUsesMap.find(Reg);
|
||||||
const SmallBitVector &UsedByIndices =
|
if (I == RegUsesMap.end())
|
||||||
RegUsesMap.find(Reg)->second.UsedByIndices;
|
return false;
|
||||||
|
const SmallBitVector &UsedByIndices = I->second.UsedByIndices;
|
||||||
int i = UsedByIndices.find_first();
|
int i = UsedByIndices.find_first();
|
||||||
if (i == -1) return false;
|
if (i == -1) return false;
|
||||||
if ((size_t)i != LUIdx) return true;
|
if ((size_t)i != LUIdx) return true;
|
||||||
|
|
Loading…
Reference in New Issue