Skip to content

Commit f24b868

Browse files
author
Thorsten Schütt
committed
uglify
1 parent 048fc2b commit f24b868

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

llvm/include/llvm/Target/GlobalISel/Combine.td

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def unary_undef_to_zero: GICombineRule<
428428
// replaced with undef.
429429
def propagate_undef_any_op: GICombineRule<
430430
(defs root:$root),
431-
(match (wip_match_opcode G_ADD, G_FPTOSI, G_FPTOUI, G_SUB, G_XOR, G_TRUNC, G_BITCAST):$root,
431+
(match (wip_match_opcode G_ADD, G_FPTOSI, G_FPTOUI, G_SUB, G_XOR, G_TRUNC, G_BITCAST, G_ANYEXT):$root,
432432
[{ return Helper.matchAnyExplicitUseIsUndef(*${root}); }]),
433433
(apply [{ Helper.replaceInstWithUndef(*${root}); }])>;
434434

@@ -1857,12 +1857,6 @@ class integer_of_opcode<Instruction castOpcode> : GICombineRule <
18571857

18581858
def integer_of_truncate : integer_of_opcode<G_TRUNC>;
18591859

1860-
def anyext_undef: GICombineRule<
1861-
(defs root:$root),
1862-
(match (G_IMPLICIT_DEF $undef),
1863-
(G_ANYEXT $root, $undef):$Aext),
1864-
(apply [{ Helper.replaceInstWithUndef(*${Aext}); }])>;
1865-
18661860
def zext_undef: GICombineRule<
18671861
(defs root:$root),
18681862
(match (G_IMPLICIT_DEF $undef),
@@ -1903,7 +1897,6 @@ def cast_combines: GICombineGroup<[
19031897
narrow_binop_or,
19041898
narrow_binop_xor,
19051899
integer_of_truncate,
1906-
anyext_undef,
19071900
sext_undef,
19081901
zext_undef
19091902
]>;

0 commit comments

Comments
 (0)