summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclCXX.cpp
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2018-11-30 22:55:38 +0000
committerNicolai Haehnle <nhaehnle@gmail.com>2018-11-30 22:55:38 +0000
commita7b00058e05f6862d4ef2c8f8bb287b09f7e41b1 (patch)
tree3f571b7d7ba5368d8ca4dc8010ef04ffe0ee6eef /clang/lib/Sema/SemaDeclCXX.cpp
parenta9cc92c247ce5d0ecc3399e7af6e40a3d59bbf6c (diff)
downloadbcm5719-llvm-a7b00058e05f6862d4ef2c8f8bb287b09f7e41b1.tar.gz
bcm5719-llvm-a7b00058e05f6862d4ef2c8f8bb287b09f7e41b1.zip
AMDGPU: Divergence-driven selection of scalar buffer load intrinsics
Summary: Moving SMRD to VMEM in SIFixSGPRCopies is rather bad for performance if the load is really uniform. So select the scalar load intrinsics directly to either VMEM or SMRD buffer loads based on divergence analysis. If an offset happens to end up in a VGPR -- either because a floating point calculation was involved, or due to other remaining deficiencies in SIFixSGPRCopies -- we use v_readfirstlane. There is some unrelated churn in tests since we now select MUBUF offsets in a unified way with non-scalar buffer loads. Change-Id: I170e6816323beb1348677b358c9d380865cd1a19 Reviewers: arsenm, alex-t, rampitec, tpr Subscribers: kzhuravl, jvesely, wdng, yaxunl, dstuttard, t-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D53283 llvm-svn: 348050
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud