[llvm] [AArch64] Use a load instead of a store for inline stack probes (PR #170855)
Momchil Velikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 6 02:31:14 PST 2026
momchil-velikov wrote:
> ```
> .addMemOperand(
> MF.getMachineMemOperand(
> MachinePointerInfo::getUnknownStack(MF),
> MachineMemOperand::MOLoad | MachineMemOperand::MOVolatile,
> 8, Align(8)));
> ```
>
> I wonder if instead of `MachineMemOperand::MOVolatile` the lack of `MachineMemOperand::MODereferencable` would convey the intent more precisely?
Eh, I guess no, the compiler is allowed to remove instructions that *may* trap (all else equal), right?
https://github.com/llvm/llvm-project/pull/170855
More information about the llvm-commits
mailing list