[llvm-branch-commits] [llvm] [KeyInstr][JumpThreading] Remap atoms in blocks duplicated for threading (PR #133486)

Paul T Robinson via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Apr 11 13:46:10 PDT 2025


================
@@ -0,0 +1,68 @@
+; RUN: opt -S -passes=jump-threading,verify %s | FileCheck %s
+
+;; Modified from llvm/test/Transforms/JumpThreading/thread-two-bbs.ll
+;;
+;; JumpThreading duplicates bb.cond2 to thread through bb.file to bb.f2 or exit.
+;;
+;; Check the duplicated instructions get remapped atom groups.
+
+; CHECK: bb.cond2:
----------------
pogo59 wrote:

I wouldn't. The point of CHECK-LABEL is to subdivide the checked text; here, it's followed by a series of CHECK-NEXT, so the grouping effect of -LABEL isn't needed.

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


More information about the llvm-branch-commits mailing list