Flat can be merged with flat global since address cast is a no-op.
A combined memory operation needs to be promoted to flat.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp | ||
---|---|---|
82 | You should at least comment that GLOBAL_LOAD/GLOBAL_STORE are never used as the InstClass of any CombineInfo, they are only ever returned by getCommonInstClass. Maybe move them to the end as they are kind of meta-classes. | |
527 | Needs a comment saying what this does. It is not obvious from the name. | |
1580 | This looks like part of D120370. |
Comment Actions
Rebased and addressed review comments.
llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp | ||
---|---|---|
1580 | Rebased. |
You should at least comment that GLOBAL_LOAD/GLOBAL_STORE are never used as the InstClass of any CombineInfo, they are only ever returned by getCommonInstClass. Maybe move them to the end as they are kind of meta-classes.