aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorYingwei Zheng <dtcxzyw2333@gmail.com>2024-03-26 20:56:16 +0800
committerGitHub <noreply@github.com>2024-03-26 20:56:16 +0800
commitcaa225825075237cd6b15757476dd1999bec290b (patch)
tree3b257ca94019f1cefd050c6ce55c9e5b847d0a49 /clang/lib/CodeGen/CodeGenModule.cpp
parentfeebcd65fb7e0534f5219e05432a05e45aa8cd2a (diff)
downloadllvm-caa225825075237cd6b15757476dd1999bec290b.zip
llvm-caa225825075237cd6b15757476dd1999bec290b.tar.gz
llvm-caa225825075237cd6b15757476dd1999bec290b.tar.bz2
[LLVM] Remove nuw neg (#86295)
This patch removes APIs that creating NUW neg. It is a trivial case because `sub nuw 0, X` always gets simplified into zero. I believe there is no optimization opportunities in the real-world applications that we can take advantage of the nuw flag. Motivated by https://github.com/llvm/llvm-project/pull/84792#discussion_r1524891134. Compile-time improvement: https://llvm-compile-time-tracker.com/compare.php?from=d1f182c895728d89c5c3d198b133e212a5d9d4a3&to=da7b7478b7cbb32c09d760f6b8d0e67901e0d533&stat=instructions:u
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions