[PATCH] D100188: [AMDGPU] SIFoldOperands: eagerly erase dead REG_SEQUENCEs

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 9 06:13:27 PDT 2021


foad added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIFoldOperands.cpp:1547
   MachineInstr *UseMI = Op->getParent();
   while (UseMI->isCopy() && !Op->getSubReg()) {
     Reg = UseMI->getOperand(0).getReg();
----------------
Do we actually need to follow copies here? I don't see any lit tests regressions if I remove this loop.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100188/new/

https://reviews.llvm.org/D100188



More information about the llvm-commits mailing list