[llvm] [X86][MemFold] Allow masked load folding if masks are equal (PR #161074)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 28 07:40:59 PDT 2025


================
@@ -8113,6 +8113,38 @@ MachineInstr *X86InstrInfo::foldMemoryOperandImpl(
     MachineBasicBlock::iterator InsertPt, MachineInstr &LoadMI,
     LiveIntervals *LIS) const {
 
+  Register MaskReg;
----------------
RKSimon wrote:

Please add a suitable summary comment.

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


More information about the llvm-commits mailing list