[XLA:GPU][IndexAnalysis] Add a method to remove unused dims and symbols.
[XLA:GPU][IndexAnalysis] Add a method to remove unused dims and symbols.

Both RemoveUnusedSymbols and RemoveUnusedDims find unused dims and symbols. Therefore, it would not be efficient to run this part twice when we want to remove both symbols and dimensions.
