summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2017-07-26 21:29:15 +0000
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2017-07-26 21:29:15 +0000
commit3197eb69812f9ff1c0ef4b2a7b894397dec3de24 (patch)
tree9eb5e70f569cbb3569bcf3c65be5a9bc02fa5265 /clang/lib/Serialization/ASTWriter.cpp
parentb3ed4bcb8f1b0a9343d47628ae98127ca33575d1 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud