added duplicate instruction pruning