[PATCH] D104049: [AMDGPU] [CodeGen] Fold negate llvm.amdgcn.class into test mask

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 18 09:15:14 PDT 2021


foad accepted this revision.
foad added a comment.

Looks OK to me, but please wait a day in case other reviewers still have comments.



================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp:816
+  ConstantInt *RHS = dyn_cast<ConstantInt>(I.getOperand(1));
+  if (!RHS || !IntrinsicCall || !RHS->getType()->isIntegerTy() ||
+      RHS->getSExtValue() != -1)
----------------
All ConstantInts have IntegerType so you don't need to check that.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104049



More information about the llvm-commits mailing list