18 lines · plain
1; RUN: llc -O2 -mtriple=hexagon < %s | FileCheck %s2 3define i32 @foo(i32 %x) {4 %p = icmp eq i32 %x, 05 br i1 %p, label %zero, label %nonzero6nonzero:7 %v1 = add i32 %x, 18 %c = icmp eq i32 %x, %v19; This branch will be rewritten by HCP. A bug would cause both branches to10; go away, leaving no path to "ret -1".11 br i1 %c, label %zero, label %other12zero:13 ret i32 014other:15; CHECK: -116 ret i32 -117}18