[llvm] [InstCombine] Canonicalise SextADD + GEP (PR #69581)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 03:03:14 PST 2023


================
@@ -0,0 +1,82 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
+; RUN: opt < %s -passes=instcombine -S | FileCheck %s
+
+define void @test(ptr noundef %ptr, i32 noundef signext %a, i32 noundef signext %b) {
----------------
LiqinWeng wrote:

This information needs to be retained, otherwise this optimization conversion will fail.

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


More information about the llvm-commits mailing list