[llvm] [CodeGen] Tail Duplication: Remove irrelevant phi node workaround (PR #86981)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 22 09:09:44 PDT 2024
================
@@ -1,12 +1,18 @@
-; RUN: llc -march=hexagon -O2 -disable-cgp < %s
-; REQUIRES: asserts
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
+; RUN: llc -march=hexagon -O2 -disable-cgp < %s | FileCheck %s
;
; Tail duplication can ignore subregister information on PHI nodes, and as
; a result, generate COPY instructions between registers of different classes.
; This could lead to HexagonInstrInfo::copyPhysReg aborting on an unhandled
; src/dst combination.
;
define i32 @foo(i32 %x, i64 %y) nounwind {
+; CHECK-LABEL: foo:
+; CHECK: // %bb.0: // %entry
+; CHECK-NEXT: {
+; CHECK-NEXT: r1:0 = combine(r3,r2)
----------------
AtariDreams wrote:
Alright, so is there a way to see all the optimizations done
https://github.com/llvm/llvm-project/pull/86981
More information about the llvm-commits
mailing list