[all-commits] [llvm/llvm-project] 3a700c: [SDAG] Allow Unknown sizes when refining MMO align...

David Green via All-commits all-commits at lists.llvm.org
Thu Nov 25 02:19:41 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a700cabdcbadb2a1a5961fd380a103cd7f867b3
      https://github.com/llvm/llvm-project/commit/3a700cabdcbadb2a1a5961fd380a103cd7f867b3
  Author: David Green <david.green at arm.com>
  Date:   2021-11-25 (Thu, 25 Nov 2021)

  Changed paths:
    M llvm/lib/CodeGen/MachineOperand.cpp
    M llvm/test/CodeGen/X86/masked_store.ll

  Log Message:
  -----------
  [SDAG] Allow Unknown sizes when refining MMO alignments. NFC

The changes in D113888 / 32b6c17b29079e7d altered the memory size of a
masked store, as it will store an unknown number of bytes not the full
vector size. We can have situations where the masked stores is legalized
and then turned to a normal store, as the mask is known to be all ones.
This creates a store with an unknown size MMO that was hitting this
assert.

The store created can be given a better size in a followup patch. This
currently adjusts the assert to handle unknown sizes.




More information about the All-commits mailing list