[llvm] [CodeGenPrepare] Check types when unmerging GEPs across indirect branches (PR #68587)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 12 07:01:15 PDT 2023


================
@@ -0,0 +1,51 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
+; RUN: opt -S -codegenprepare %s -o - | FileCheck %s
+
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+%struct.Blub = type { i8, i8, ptr }
+
+ at indirectBrPtr = external hidden global ptr
+
+define dso_local noundef ptr @testFunc(ptr noundef readonly %array, i1 %skip) {
----------------
nikic wrote:

Drop dso_local + noundef, shouldn't be necessary.

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


More information about the llvm-commits mailing list