[PATCH] D100117: [AMDGPU] SIFoldOperands: eagerly delete dead copies
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 8 08:45:34 PDT 2021
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIFoldOperands.cpp:1789
+ // delete it now.
+ if (MRI->use_empty(MI.getOperand(0).getReg()))
+ MI.eraseFromParent();
----------------
Slightly worried about the case where the only remaining copy user is a debug instruction
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100117/new/
https://reviews.llvm.org/D100117
More information about the llvm-commits
mailing list