Skip to content

Conversation

@changpeng
Copy link
Contributor

Should set the insertion point appropriately before we create an instruction with IRBuilder.

Fixes: SWDEV-562571

…eation

  Should set the insertion point appropriately before we create an instruction
with IRBuilder.

Fixes: SWDEV-562571
@changpeng changpeng requested a review from nikic as a code owner October 27, 2025 20:49
@llvmbot llvmbot added llvm:instcombine Covers the InstCombine, InstSimplify and AggressiveInstCombine passes llvm:transforms labels Oct 27, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 27, 2025

@llvm/pr-subscribers-llvm-transforms

Author: Changpeng Fang (changpeng)

Changes

Should set the insertion point appropriately before we create an instruction with IRBuilder.

Fixes: SWDEV-562571


Full diff: https://github.com/llvm/llvm-project/pull/165315.diff

2 Files Affected:

  • (modified) llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp (+2)
  • (modified) llvm/test/Transforms/InstCombine/fold-selective-shift.ll (+22)
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
index 651e305f57dfc..550dfc57a348b 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
@@ -105,6 +105,8 @@ static Value *simplifyShiftSelectingPackedElement(Instruction *I,
   if (~KnownShrBits.Zero != ShlAmt)
     return nullptr;
 
+  IRBuilderBase::InsertPointGuard Guard(IC.Builder);
+  IC.Builder.SetInsertPoint(I);
   Value *ShrAmtZ =
       IC.Builder.CreateICmpEQ(ShrAmt, Constant::getNullValue(ShrAmt->getType()),
                               ShrAmt->getName() + ".z");
diff --git a/llvm/test/Transforms/InstCombine/fold-selective-shift.ll b/llvm/test/Transforms/InstCombine/fold-selective-shift.ll
index 2b2296541f14a..dcfd93328e087 100644
--- a/llvm/test/Transforms/InstCombine/fold-selective-shift.ll
+++ b/llvm/test/Transforms/InstCombine/fold-selective-shift.ll
@@ -21,6 +21,28 @@ define i16 @selective_shift_16(i32 %mask, i16 %upper, i16 %lower) {
   ret i16 %trunc
 }
 
+; Will assert if InsertPoint is not set before creating an instruction
+; with IRBuilder
+define i16 @selective_shift_16_insertpt(i32 %mask, i16 %upper, i16 %lower) {
+; CHECK-LABEL: define i16 @selective_shift_16_insertpt(
+; CHECK-SAME: i32 [[MASK:%.*]], i16 [[UPPER:%.*]], i16 [[LOWER:%.*]]) {
+; CHECK-NEXT:    [[MASK_BIT:%.*]] = and i32 [[MASK]], 16
+; CHECK-NEXT:    [[MASK_BIT_Z:%.*]] = icmp eq i32 [[MASK_BIT]], 0
+; CHECK-NEXT:    [[SEL_V:%.*]] = select i1 [[MASK_BIT_Z]], i16 [[LOWER]], i16 [[UPPER]]
+; CHECK-NEXT:    [[ADD_ONE:%.*]] = add i16 [[SEL_V]], 1
+; CHECK-NEXT:    ret i16 [[ADD_ONE]]
+;
+  %mask.bit = and i32 %mask, 16
+  %upper.zext = zext i16 %upper to i32
+  %upper.shl = shl nuw i32 %upper.zext, 16
+  %lower.zext = zext i16 %lower to i32
+  %pack = or disjoint i32 %upper.shl, %lower.zext
+  %sel = lshr i32 %pack, %mask.bit
+  %add.one = add i32 %sel, 1
+  %trunc = trunc i32 %add.one to i16
+  ret i16 %trunc
+}
+
 define i16 @selective_shift_16.commute(i32 %mask, i16 %upper, i16 %lower) {
 ; CHECK-LABEL: define i16 @selective_shift_16.commute(
 ; CHECK-SAME: i32 [[MASK:%.*]], i16 [[UPPER:%.*]], i16 [[LOWER:%.*]]) {

@changpeng changpeng requested review from rampitec, shiltian and zGoldthorpe and removed request for nikic October 27, 2025 20:50
Copy link
Contributor

@zGoldthorpe zGoldthorpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@changpeng changpeng changed the title [AMDGPU] Add the missing insertion point before IRBuilder instruction creation []InstCombine] Add the missing insertion point before IRBuilder instruction creation Oct 27, 2025
@changpeng changpeng changed the title []InstCombine] Add the missing insertion point before IRBuilder instruction creation [InstCombine] Add the missing insertion point before IRBuilder instruction creation Oct 27, 2025
@changpeng changpeng merged commit 1fb2ab3 into llvm:main Oct 28, 2025
16 of 21 checks passed
@changpeng changpeng deleted the insertionpt branch October 28, 2025 00:01
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 28, 2025

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-a-1 while building llvm at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/26847

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[859/1455] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find cir-opt in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/wasm-ld
-- Testing: 23011 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50
FAIL: Clang :: Driver/fat-lto-objects.c (12368 of 23011)
******************** TEST 'Clang :: Driver/fat-lto-objects.c' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/clang --target=x86_64-unknown-linux-gnu -flto -ffat-lto-objects -### /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c -c 2>&1 | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c -check-prefix=CHECK-CC
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/clang --target=x86_64-unknown-linux-gnu -flto -ffat-lto-objects '-###' /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c -c
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c -check-prefix=CHECK-CC
# .---command stderr------------
# | /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c:3:19: error: CHECK-CC-SAME: is not on the same line as the previous match
# | // CHECK-CC-SAME: -emit-obj
# |                   ^
# | <stdin>:6:131: note: 'next' match was here
# |  "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/llvm" "clang" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-obj" "-disable-free" "-clear-ast-before-backend" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "fat-lto-objects.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/tools/clang/test/Driver" "-fcoverage-compilation-dir=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/tools/clang/test/Driver" "-resource-dir" "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/lib/clang/22" "-internal-isystem" "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-flto=full" "-flto-unit" "-ffat-lto-objects" "-ffat-lto-objects" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "fat-lto-objects.o" "-x" "c" "/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c"
# |                                                                                                                                   ^
# | <stdin>:4:74: note: previous match ended here
# | InstalledDir: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin
# |                                                                          ^
# | 
# | Input file: <stdin>
# | Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |         1: Fuchsia clang version 22.0.0git (https://github.com/llvm/llvm-project.git 1fb2ab37af4065a8bc9288e43456a87724110786) 
# |         2: Target: x86_64-unknown-linux-gnu 
# |         3: Thread model: posix 
# |         4: InstalledDir: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin 
# |         5:  (in-process) 
# |         6:  "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/llvm" "clang" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-obj" "-disable-free" "-clear-ast-before-backend" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "fat-lto-objects.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/tools/clang/test/Driver" "-fcoverage-compilation-dir=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/tools/clang/test/Driver" "-resource-dir" "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/lib/clang/22" "-internal-isystem" "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-flto=full" "-flto-unit" "-ffat-lto-objects" "-ffat-lto-objects" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "fat-lto-objects.o" "-x" "c" "/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c" 
# | same:3                                                                                                                                       !~~~~~~~~                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    error: match on wrong line
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

Step 7 (check) failure: check (failure)
...
[859/1455] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find cir-opt in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/wasm-ld
-- Testing: 23011 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50
FAIL: Clang :: Driver/fat-lto-objects.c (12368 of 23011)
******************** TEST 'Clang :: Driver/fat-lto-objects.c' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/clang --target=x86_64-unknown-linux-gnu -flto -ffat-lto-objects -### /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c -c 2>&1 | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c -check-prefix=CHECK-CC
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/clang --target=x86_64-unknown-linux-gnu -flto -ffat-lto-objects '-###' /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c -c
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c -check-prefix=CHECK-CC
# .---command stderr------------
# | /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c:3:19: error: CHECK-CC-SAME: is not on the same line as the previous match
# | // CHECK-CC-SAME: -emit-obj
# |                   ^
# | <stdin>:6:131: note: 'next' match was here
# |  "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/llvm" "clang" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-obj" "-disable-free" "-clear-ast-before-backend" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "fat-lto-objects.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/tools/clang/test/Driver" "-fcoverage-compilation-dir=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/tools/clang/test/Driver" "-resource-dir" "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/lib/clang/22" "-internal-isystem" "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-flto=full" "-flto-unit" "-ffat-lto-objects" "-ffat-lto-objects" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "fat-lto-objects.o" "-x" "c" "/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c"
# |                                                                                                                                   ^
# | <stdin>:4:74: note: previous match ended here
# | InstalledDir: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin
# |                                                                          ^
# | 
# | Input file: <stdin>
# | Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |         1: Fuchsia clang version 22.0.0git (https://github.com/llvm/llvm-project.git 1fb2ab37af4065a8bc9288e43456a87724110786) 
# |         2: Target: x86_64-unknown-linux-gnu 
# |         3: Thread model: posix 
# |         4: InstalledDir: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin 
# |         5:  (in-process) 
# |         6:  "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/bin/llvm" "clang" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-obj" "-disable-free" "-clear-ast-before-backend" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "fat-lto-objects.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/tools/clang/test/Driver" "-fcoverage-compilation-dir=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/tools/clang/test/Driver" "-resource-dir" "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/lib/clang/22" "-internal-isystem" "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cc1ss8gv/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-flto=full" "-flto-unit" "-ffat-lto-objects" "-ffat-lto-objects" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "fat-lto-objects.o" "-x" "c" "/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/fat-lto-objects.c" 
# | same:3                                                                                                                                       !~~~~~~~~                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    error: match on wrong line
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1


Lukacma pushed a commit to Lukacma/llvm-project that referenced this pull request Oct 29, 2025
…ction creation (llvm#165315)

Should set the insertion point appropriately before we create an
instruction with IRBuilder.

Fixes: SWDEV-562571
aokblast pushed a commit to aokblast/llvm-project that referenced this pull request Oct 30, 2025
…ction creation (llvm#165315)

Should set the insertion point appropriately before we create an
instruction with IRBuilder.

Fixes: SWDEV-562571
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

llvm:instcombine Covers the InstCombine, InstSimplify and AggressiveInstCombine passes llvm:transforms

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants