summaryrefslogtreecommitdiff
path: root/lldb/source/Target/Target.cpp
diff options
context:
space:
mode:
authorAZero13 <gfunni234@gmail.com>2025-06-12 16:02:51 -0400
committerGitHub <noreply@github.com>2025-06-12 21:02:51 +0100
commitc19e900ce8b422f6b8c028fbbd9ef7e9d3720236 (patch)
treeda43293575553fc42990e2acccc36cb9d0166429 /lldb/source/Target/Target.cpp
parentcbf27bf711c08c34185f05ca5edbfa61bd3786e2 (diff)
[AArch64] Signed comparison using CMN is safe when the subtraction is nsw (#141993)
nsw means no signed wrap, and 0 - INT_MIN is a signed wrap. Now, this is going to be a point I need to get out of the way: So is it okay to always transform a > -b into cmn if it is a signed comparison, even if b is INT_MIN because -INT_MIN is undefined, at least in C, because unless fwrapv is specified, opt puts nsw on signed integer operations, allowing for more folds anyway.
Diffstat (limited to 'lldb/source/Target/Target.cpp')
0 files changed, 0 insertions, 0 deletions