[llvm] [IR] Remove the AtomicMem*Inst helper classes (PR #138710)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Tue May 6 13:18:51 PDT 2025


================
@@ -670,7 +670,7 @@ static bool tryToShorten(Instruction *DeadI, int64_t &DeadStart,
   assert(DeadSize > ToRemoveSize && "Can't remove more than original size");
 
   uint64_t NewSize = DeadSize - ToRemoveSize;
-  if (auto *AMI = dyn_cast<AtomicMemIntrinsic>(DeadI)) {
+  if (auto *AMI = dyn_cast<AnyMemIntrinsic>(DeadI); AMI && AMI->isAtomic()) {
----------------
preames wrote:

It's not actually, but there's a DeadIntrinsic cast which is.  Adjusting.

https://github.com/llvm/llvm-project/pull/138710


More information about the llvm-commits mailing list