[all-commits] [llvm/llvm-project] 980531: [VPlan] Fix MayReadFromMemory/MayWriteToMemory on ...

Luke Lau via All-commits all-commits at lists.llvm.org
Tue Apr 22 07:50:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 980531cac0988e509425e64fbd279ee98e25307c
      https://github.com/llvm/llvm-project/commit/980531cac0988e509425e64fbd279ee98e25307c
  Author: Luke Lau <luke at igalia.com>
  Date:   2025-04-22 (Tue, 22 Apr 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.h

  Log Message:
  -----------
  [VPlan] Fix MayReadFromMemory/MayWriteToMemory on VPWidenIntrinsicRecipe (#136684)

These seem to be the wrong way round, e.g. see the definition at
Instruction::mayReadFromMemory().
If an instruction only writes to memory then it's known to not read
memory, and so on.

Only noticed this when using VPWidenIntrinsicRecipe in a local patch and
wondered why it kept on getting DCEd despite the intrinsic writing to
memory.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list