[llvm] [DAGCombiner] Fix exact power-of-two signed division for large integers (PR #177340)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 25 06:40:47 PST 2026


================
@@ -0,0 +1,481 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc < %s -mtriple=x86_64--     | FileCheck %s --check-prefix=X64
+; RUN: llc < %s -mtriple=x86_64-- -O0 | FileCheck %s --check-prefix=X64-O0
+; RUN: llc < %s -mtriple=i686--       | FileCheck %s --check-prefix=X32
+; RUN: llc < %s -mtriple=i686-- -O0   | FileCheck %s --check-prefix=X32-O0
+
+define i129 @v_sdiv_i129_v_pow2k(i129 %lhs) {
----------------
RKSimon wrote:

Use nounwind to fix cfi noise
`define i129 @v_sdiv_i129_v_pow2k(i129 %lhs) nounwind {

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


More information about the llvm-commits mailing list