Refactor code. Remove duplicated functions that basically do the same thing as
findRegisterUseOperandIdx, findRegisterDefOperandIndx. Fix some naming inconsistencies.

llvm-svn: 47927
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp
index cdf827d..4611dae 100644
--- a/llvm/lib/CodeGen/StrongPHIElimination.cpp
+++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp
@@ -351,10 +351,10 @@
           break;
         }
       // Store KillInsts if they match up with the definition
-      } else if (LV.KillsRegister(curr, a)) {
+      } else if (curr->killsRegister(a)) {
         if (def == MRI->getVRegDef(a)) {
           kill = curr;
-        } else if (LV.KillsRegister(curr, b)) {
+        } else if (curr->killsRegister(b)) {
           if (def == MRI->getVRegDef(b)) {
             kill = curr;
           }
@@ -373,7 +373,7 @@
           break;
         }
       // Save KillInsts of First
-      } else if (LV.KillsRegister(curr, a)) {
+      } else if (curr->killsRegister(a)) {
         kill = curr;
       }
     // Symmetric with the above
@@ -386,7 +386,7 @@
           interference = false;
           break;
         }
-      } else if (LV.KillsRegister(curr, b)) {
+      } else if (curr->killsRegister(b)) {
         kill = curr;
       }
     }