[llvm] [LLVM] Remove nuw neg (PR #86295)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 24 05:05:15 PDT 2024


================
@@ -3555,11 +3550,6 @@ LLVMValueRef LLVMBuildNSWNeg(LLVMBuilderRef B, LLVMValueRef V,
   return wrap(unwrap(B)->CreateNSWNeg(unwrap(V), Name));
 }
 
-LLVMValueRef LLVMBuildNUWNeg(LLVMBuilderRef B, LLVMValueRef V,
-                             const char *Name) {
-  return wrap(unwrap(B)->CreateNUWNeg(unwrap(V), Name));
-}
----------------
nikic wrote:

We should avoid dropping C APIs if it's still possible to support them (e.g. by explicitly setting the flag, or even just creating the instruction without the flag).

https://github.com/llvm/llvm-project/pull/86295


More information about the llvm-commits mailing list