https://github.com/arichardson updated https://github.com/llvm/llvm-project/pull/159959
>From 690f3086eda24b46fc5cc6e9093327c675c0ce21 Mon Sep 17 00:00:00 2001 From: Alex Richardson <alexrichard...@google.com> Date: Sun, 21 Sep 2025 14:56:22 -0700 Subject: [PATCH 1/2] fix typo in comment Created using spr 1.3.8-beta.1 --- .../InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll b/llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll index 16980b54f93ad..a9eeca1c2fa20 100644 --- a/llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll +++ b/llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5 ; RUN: opt -S -passes=instsimplify < %s | FileCheck %s -;; Check that we do not create new inttoptr intstructions for unstable pointers +;; Check that we do not create new inttoptr instructions for unstable pointers ;; or pointers with external state (even if the values are all constants). ;; NOTE: for all but the zero address space, the GEP should only modify the low 8 bits of the pointer. target datalayout = "p:16:16:16:16-p1:16:16:16:8-pu2:16:16:16:8-pe3:16:16:16:8" >From d18eb5ed5f5cdd70930669a722b919816506566a Mon Sep 17 00:00:00 2001 From: Alex Richardson <alexrichard...@google.com> Date: Sun, 21 Sep 2025 18:23:59 -0700 Subject: [PATCH 2/2] spelling Created using spr 1.3.8-beta.1 --- .../InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll b/llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll index a9eeca1c2fa20..da413df013571 100644 --- a/llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll +++ b/llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll @@ -2,7 +2,8 @@ ; RUN: opt -S -passes=instsimplify < %s | FileCheck %s ;; Check that we do not create new inttoptr instructions for unstable pointers ;; or pointers with external state (even if the values are all constants). -;; NOTE: for all but the zero address space, the GEP should only modify the low 8 bits of the pointer. +;; NOTE: for all but the zero address space, the GEP should only modify the +;; low 8 bits of the pointer. target datalayout = "p:16:16:16:16-p1:16:16:16:8-pu2:16:16:16:8-pe3:16:16:16:8" define ptr @test_null_base_normal() { @@ -22,7 +23,7 @@ define ptr @test_inttoptr_base_normal() { } ;; Transformation is fine for non-integral address space, but we can only change -;; the index bits (i8 -2 == i16 254) +;; the index bits: (i8 -2 == i16 254) define ptr addrspace(1) @test_null_base_nonintegral() { ; CHECK-LABEL: define ptr addrspace(1) @test_null_base_nonintegral() { ; CHECK-NEXT: ret ptr addrspace(1) inttoptr (i16 254 to ptr addrspace(1)) _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits