File: dont-patch-llvm-test.diff

package info (click to toggle)
intel-graphics-compiler2 2.28.4-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 792,656 kB
  • sloc: cpp: 5,761,745; ansic: 466,928; lisp: 312,143; python: 114,790; asm: 44,736; pascal: 10,930; sh: 8,033; perl: 7,914; ml: 3,625; awk: 3,523; yacc: 2,747; javascript: 2,667; lex: 1,898; f90: 1,028; cs: 573; xml: 474; makefile: 344; objc: 162
file content (31 lines) | stat: -rw-r--r-- 1,438 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/external/llvm/releases/16.0.0/patches_external/InstCombine-Only-fold-bitcast-fptrunc-if-destination.patch b/external/llvm/releases/16.0.0/patches_external/InstCombine-Only-fold-bitcast-fptrunc-if-destination.patch
index c7ed73cd26..cc4d9eecfd 100644
--- a/external/llvm/releases/16.0.0/patches_external/InstCombine-Only-fold-bitcast-fptrunc-if-destination.patch
+++ b/external/llvm/releases/16.0.0/patches_external/InstCombine-Only-fold-bitcast-fptrunc-if-destination.patch
@@ -45,26 +45,5 @@ index 7c343a0ff..932fc66a8 100644
          return firstOp;
        return 0;
      case 5:
-diff --git a/llvm/test/Transforms/InstCombine/fptrunc.ll b/llvm/test/Transforms/InstCombine/fptrunc.ll
-index d3e153f12..c78df0b83 100644
---- a/llvm/test/Transforms/InstCombine/fptrunc.ll
-+++ b/llvm/test/Transforms/InstCombine/fptrunc.ll
-@@ -190,3 +190,16 @@ define half @ItoFtoF_u25_f32_f16(i25 %i) {
-   %r = fptrunc float %x to half
-   ret half %r
- }
-+
-+; Negative test - bitcast bfloat to half is not optimized
-+
-+define half @fptrunc_to_bfloat_bitcast_to_half(float %src) {
-+; CHECK-LABEL: @fptrunc_to_bfloat_bitcast_to_half(
-+; CHECK-NEXT:    [[TRUNC:%.*]] = fptrunc float [[SRC:%.*]] to bfloat
-+; CHECK-NEXT:    [[CAST:%.*]] = bitcast bfloat [[TRUNC]] to half
-+; CHECK-NEXT:    ret half [[CAST]]
-+;
-+  %trunc = fptrunc float %src to bfloat
-+  %cast = bitcast bfloat %trunc to half
-+  ret half %cast
-+}
 --
 2.34.1