diff options
author | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2017-07-26 21:29:15 +0000 |
---|---|---|
committer | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2017-07-26 21:29:15 +0000 |
commit | 3197eb69812f9ff1c0ef4b2a7b894397dec3de24 (patch) | |
tree | 9eb5e70f569cbb3569bcf3c65be5a9bc02fa5265 /clang/lib/Serialization/ASTWriter.cpp | |
parent | b3ed4bcb8f1b0a9343d47628ae98127ca33575d1 (diff) | |
download | bcm5719-llvm-3197eb69812f9ff1c0ef4b2a7b894397dec3de24.tar.gz bcm5719-llvm-3197eb69812f9ff1c0ef4b2a7b894397dec3de24.zip |
[AMDGPU] Optimize SI_IF lowering for simple if regions
Currently SI_IF results in a s_and_saveexec_b64 followed by s_xor_b64.
The xor is used to extract only the changed bits. In case of a simple
if region where the only use of that value is in the SI_END_CF to
restore the old exec mask, we can omit the xor and perform an or of
the exec mask with the original exec value saved by the
s_and_saveexec_b64.
Differential Revision: https://reviews.llvm.org/D35861
llvm-svn: 309185
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
0 files changed, 0 insertions, 0 deletions