summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CodeExtractor.cpp
diff options
context:
space:
mode:
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2017-06-27 18:53:03 +0000
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2017-06-27 18:53:03 +0000
commitc9bd53ab59012d37318f7bf207e5667151c99a1d (patch)
tree0f764a46adc56f71ebb805f65e7d4b7ef52b7626 /llvm/lib/Transforms/Utils/CodeExtractor.cpp
parent3f91be52c38b6bb841a1975068178dc1977c74a6 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud