diff options
author | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2017-06-27 18:53:03 +0000 |
---|---|---|
committer | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2017-06-27 18:53:03 +0000 |
commit | c9bd53ab59012d37318f7bf207e5667151c99a1d (patch) | |
tree | 0f764a46adc56f71ebb805f65e7d4b7ef52b7626 /llvm/lib/Transforms/Utils/CodeExtractor.cpp | |
parent | 3f91be52c38b6bb841a1975068178dc1977c74a6 (diff) | |
download | bcm5719-llvm-c9bd53ab59012d37318f7bf207e5667151c99a1d.tar.gz bcm5719-llvm-c9bd53ab59012d37318f7bf207e5667151c99a1d.zip |
[AMDGPU] Simplify setcc (sext from i1 b), -1|0, cc
Depending on the compare code that can be either an argument of
sext or negate of it. This helps to avoid v_cndmask_b64 instruction
for sext. A reversed value can be further simplified and folded into
its parent comparison if possible.
Differential Revision: https://reviews.llvm.org/D34545
llvm-svn: 306446
Diffstat (limited to 'llvm/lib/Transforms/Utils/CodeExtractor.cpp')
0 files changed, 0 insertions, 0 deletions