[llvm] [InstCombine] Fix assertion in GEP exact div/shr index canonicalization (PR #201431)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 01:37:20 PDT 2026


================
@@ -0,0 +1,67 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -passes=instcombine -S | FileCheck %s
+
+define ptr @gep_exact_sdiv_index_constfolds(i1 %cond, ptr %p, i64 %next.iv) {
----------------
nikic wrote:

Can you please add a comment here that explains what this is testing for? You can also include a reference to the issue.

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


More information about the llvm-commits mailing list