[all-commits] [llvm/llvm-project] b9e327: [GlobalISel] Clear nsw flags when converting sub t...
David Green via All-commits
all-commits at lists.llvm.org
Sat Apr 26 03:01:15 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b9e32749d273a957e60170d6e7ef205fd1fb1834
https://github.com/llvm/llvm-project/commit/b9e32749d273a957e60170d6e7ef205fd1fb1834
Author: David Green <david.green at arm.com>
Date: 2025-04-26 (Sat, 26 Apr 2025)
Changed paths:
M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
M llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-trivial-arith.mir
M llvm/test/CodeGen/AArch64/sub1.ll
Log Message:
-----------
[GlobalISel] Clear nsw flags when converting sub to add. (#137288)
As shown in https://alive2.llvm.org/ce/z/PVwcTL we need to clear the nsw
flags too when converting a sub to a add if the constant is INT_MIN.
Fixes #137254
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