[all-commits] [llvm/llvm-project] d9952a: [InstCombine] Propagate neg `nsw` when folding `ab...
Pedro Lobo via All-commits
all-commits at lists.llvm.org
Thu Jul 24 13:45:58 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d9952a7a5f806a419bcbc8aa82cfda179837e189
https://github.com/llvm/llvm-project/commit/d9952a7a5f806a419bcbc8aa82cfda179837e189
Author: Pedro Lobo <pedro.lobo at tecnico.ulisboa.pt>
Date: 2025-07-24 (Thu, 24 Jul 2025)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
M llvm/test/Transforms/InstCombine/abs-intrinsic.ll
Log Message:
-----------
[InstCombine] Propagate neg `nsw` when folding `abs(-x)` to `abs(x)` (#150460)
We can propagate the nsw in the neg to abs, as `-x` is only poison if x
== INT_MIN.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list