[llvm] [MCP] Optimize copies when src is used during backward propagation (PR #111130)

Vladimir Radosavljevic via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 4 03:30:30 PDT 2024


================
@@ -1,18 +0,0 @@
-; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips \
-; RUN:   -relocation-model=pic -O3 < %s | FileCheck %s
-
- at g = external global i32
-
-; Function Attrs: noreturn nounwind
-define void @foo() #0 {
-entry:
-  %0 = load i32, ptr @g, align 4
-  tail call void @exit(i32 signext %0)
-  unreachable
-}
-
-; Function Attrs: noreturn
-declare void @exit(i32 signext)
-
-; CHECK: move $gp, ${{[0-9]+}}
----------------
vladimirradosavljevic wrote:

Removed this test, since this copy instruction is optimized.

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


More information about the llvm-commits mailing list