summaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorKoakuma <koachan@protonmail.com>2025-11-14 23:11:38 +0700
committerGitHub <noreply@github.com>2025-11-14 23:11:38 +0700
commite6f868cf7178fd8565bc078934baae4b932ad659 (patch)
treebd8e0362849eaa6ad30ce510075bc9d3c7240fc4 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
parent39774f9cafeb8d68acae73c1bf8493343732ebdd (diff)
[Sparc] Optimize compare instruction (#167140)
If we need to compare the result of a computation with 0, we can sometimes replace the last instruction in the computation with one that sets the integer condition codes. We can then branch immediately based on the zero-flag instead of having to use an extra compare instruction (a SUBcc instruction). This is only possible if the result of the compare is not used anywhere else and that no other instruction modifies the integer condition codes between the time the result of the computation is defined and the time it is used. --------- Co-authored-by: Daniel Cederman <cederman@gaisler.com>
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
0 files changed, 0 insertions, 0 deletions