[PATCH] D66958: [AMDGPU] Enable constant offset promotion to immediate operand for VMEM stores
Valery Pykhtin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 5 05:22:10 PDT 2019
vpykhtin marked an inline comment as done.
vpykhtin added inline comments.
================
Comment at: lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:1326
- // TODO: Support Store.
- if (!MI.mayLoad())
+ if (MI.mayLoad() && TII->getNamedOperand(MI, AMDGPU::OpName::vdata) != NULL)
return false;
----------------
rampitec wrote:
> vpykhtin wrote:
> > rampitec wrote:
> > > rampitec wrote:
> > > > nullptr or !TII->getNamedOperand()
> > > Stores also have vdata, aren't they?
> > this was done to save the original semantic for mayLoad checks, I'm not sure why it is used.
> What will happen it you remove mayLoad() from this condition? I think it will still work as expected.
Looks like this check is related to RMW atomics, which are supposed to be added later, but they are now skipped by the first check.
If I remove mayLoad check then it would skip stores.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66958/new/
https://reviews.llvm.org/D66958
More information about the llvm-commits
mailing list