Commit 9f434a2b authored by Khalique's avatar Khalique
Browse files

removed bidistance call

parent b5b03239
...@@ -10,26 +10,6 @@ ...@@ -10,26 +10,6 @@
namespace migraphx { namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS { inline namespace MIGRAPHX_INLINE_NS {
template <class Range, class Iterator>
std::ptrdiff_t bidistance(const Range& r, Iterator start, Iterator last)
{
auto start_forward = start;
auto start_backwards = start;
std::size_t n = 0;
while(start_forward != last and start_backwards != last)
{
n++;
if(start_forward != r.end())
start_forward++;
if(start_backwards != r.begin())
start_backwards--;
}
if(start_forward == last)
return n;
else
return -n;
}
void eliminate_identity::apply(program& p) const void eliminate_identity::apply(program& p) const
{ {
auto last = std::prev(p.end()); auto last = std::prev(p.end());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment