aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2021-04-20 22:16:11 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2021-04-21 00:31:45 +0300
commit1e6ca23ab8e350c7bab5d7f93e4d3dee18d180cc (patch)
tree6b6620a4688ea7b13595c19652dc21f0e3697317 /llvm/lib/CodeGen/StackProtector.cpp
parent4e2c4190bed7596980bf474db8c6b4ebbad97203 (diff)
downloadllvm-1e6ca23ab8e350c7bab5d7f93e4d3dee18d180cc.zip
llvm-1e6ca23ab8e350c7bab5d7f93e4d3dee18d180cc.tar.gz
llvm-1e6ca23ab8e350c7bab5d7f93e4d3dee18d180cc.tar.bz2
[InstCombine] `sext(trunc(x)) --> sext(x)` iff trunc is NSW (PR49543)
If we can tell that trunc only chops off sign bits, and not all of them, then we can simply sign-extend the trunc's source.
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions