[llvm] a21c245 - [ARMParallelDSP] Remove unnecessary ModRef intersection (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 31 23:35:07 PDT 2022
Author: Nikita Popov
Date: 2022-08-01T08:34:58+02:00
New Revision: a21c245307d21d592d2179398161fe7054fd1330
URL: https://github.com/llvm/llvm-project/commit/a21c245307d21d592d2179398161fe7054fd1330
DIFF: https://github.com/llvm/llvm-project/commit/a21c245307d21d592d2179398161fe7054fd1330.diff
LOG: [ARMParallelDSP] Remove unnecessary ModRef intersection (NFC)
Intersecting with ModRef is a no-op, as these are the only two
possible values.
Added:
Modified:
llvm/lib/Target/ARM/ARMParallelDSP.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMParallelDSP.cpp b/llvm/lib/Target/ARM/ARMParallelDSP.cpp
index 6effd84041b52..2f65423b40970 100644
--- a/llvm/lib/Target/ARM/ARMParallelDSP.cpp
+++ b/llvm/lib/Target/ARM/ARMParallelDSP.cpp
@@ -372,8 +372,7 @@ bool ARMParallelDSP::RecordMemoryOps(BasicBlock *BB) {
MemoryLocation ReadLoc =
MemoryLocation(Read->getPointerOperand(), Size);
- if (!isModOrRefSet(intersectModRef(AA->getModRefInfo(Write, ReadLoc),
- ModRefInfo::ModRef)))
+ if (!isModOrRefSet(AA->getModRefInfo(Write, ReadLoc)))
continue;
if (Write->comesBefore(Read))
RAWDeps[Read].insert(Write);
More information about the llvm-commits
mailing list