[PATCH] D124809: AMDGPU: Remove redundant call to MachineInstrBuilder::setMBB

Nicolai Hähnle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 2 15:54:59 PDT 2022


nhaehnle created this revision.
nhaehnle added reviewers: arsenm, foad, tsymalla.
Herald added subscribers: hsmhsm, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
nhaehnle requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

setInstrAndDebugLoc also sets the basic block automatically.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124809

Files:
  llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp


Index: llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
+++ llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
@@ -126,7 +126,6 @@
          LLT::scalar(64));
   const LLT S32 = LLT::scalar(32);
 
-  B.setMBB(*MI.getParent());
   B.setInstrAndDebugLoc(MI);
 
   auto Unmerge = B.buildUnmerge(S32, Src);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124809.426537.patch
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220502/bc44afac/attachment.bin>


More information about the llvm-commits mailing list