[llvm] [CodeGen] Make the parameter TRI required in some functions. (PR #85968)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 7 08:21:24 PDT 2024


================
@@ -906,7 +906,7 @@ class LegalizationArtifactCombiner {
                                         unsigned &DefOperandIdx) {
       if (Register Def = findValueFromDefImpl(Reg, 0, Size)) {
         if (auto *Unmerge = dyn_cast<GUnmerge>(MRI.getVRegDef(Def))) {
-          DefOperandIdx = Unmerge->findRegisterDefOperandIdx(Def);
+          DefOperandIdx = Unmerge->findRegisterDefOperandIdx(Def, nullptr);
----------------
RKSimon wrote:

Please can you use /*TRI=*/nullptr to make it?

https://github.com/llvm/llvm-project/pull/85968


More information about the llvm-commits mailing list