[llvm] [VPlan] Handle some VPInstructions in may{Read,Write}FromMemory (PR #120058)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 7 05:40:42 PST 2025
================
@@ -1351,6 +1351,28 @@ class VPInstruction : public VPRecipeWithIRFlags,
}
}
+ /// Returns true if the underlying opcode may read from or write to memory.
+ bool opcodeMayReadOrWriteFromMemory() const {
+ if (Instruction::isBinaryOp(getOpcode()))
+ return false;
+ switch (getOpcode()) {
+ case Instruction::Or:
----------------
lukel97 wrote:
Oh good point, removed
https://github.com/llvm/llvm-project/pull/120058
More information about the llvm-commits
mailing list