Displaying 3 results from an estimated 3 matches for "ashadunknowninsts".
2016 Jan 24
4
Skip redundant checks in AliasSet::aliasesUnknownInst
Dear llvm contributors,
Could you please advise me how to skip
checks, which are performed in AliasSet::aliasesUnknownInst, of
unknown instructions from different alias sets of an alias set tracker
that is a parameter of ‘AliasSetTracker::add(const AliasSetTracker
&AST)’?
If this wasn’t available at the moment and someone could review me, I
would try to implement it. A temporary patch can be
2016 Jan 27
2
Skip redundant checks in AliasSet::aliasesUnknownInst
...).
>
> Otherwise, even with your patch, we are still wasting time traversing and
> copying and .... the unknown instructions.
>
> If that doesn't work, I suspect the way you get dupes is through mergeSetIn,
> so you also could probably just change:
>
> 00061 } else if (ASHadUnknownInsts) {
> 00062 UnknownInsts.insert(UnknownInsts.end(), AS.UnknownInsts.begin(),
> AS.UnknownInsts.end());
> 00063 AS.UnknownInsts.clear();
> 00064 }
>
>
>
> You could insert the current unknown insts into a smallptrset, and then only
> append them to UnknownInsts if...
2016 Jan 27
2
Skip redundant checks in AliasSet::aliasesUnknownInst
...> traversing and
> > copying and .... the unknown instructions.
> >
> > If that doesn't work, I suspect the way you get dupes is through
> mergeSetIn,
> > so you also could probably just change:
> >
> > 00061 } else if (ASHadUnknownInsts) {
> > 00062 UnknownInsts.insert(UnknownInsts.end(),
> AS.UnknownInsts.begin(),
> > AS.UnknownInsts.end());
> > 00063 AS.UnknownInsts.clear();
> > 00064 }
> >
> >
> >
> > You could insert the current un...