[PATCH] D120202: [AMDGPU] Extend pre-emit peephole to redundantly masked VCC

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 22 08:25:40 PST 2022


arsenm added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp:148
+    if (A->getOpcode() == And && SReg == CondReg && !ModifiesExec &&
+        (M->isCompare() || TII->isVOPC(*M)) && TII->isVALU(*M)) {
+      A->eraseFromParent();
----------------
I think isCompare is always redundant with isVOPC


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D120202



More information about the llvm-commits mailing list