Skip to content

Commit 6abe127

Browse files
Disable combiner
1 parent 437caa3 commit 6abe127

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

llvm/lib/Target/AArch64/AArch64Combine.td

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,12 @@ def combine_mul_cmlt : GICombineRule<
332332
(apply [{ applyCombineMulCMLT(*${root}, MRI, B, ${matchinfo}); }])
333333
>;
334334

335-
def lower_fptrunc_fptrunc: GICombineRule<
336-
(defs root:$root),
337-
(match (wip_match_opcode G_FPTRUNC):$root,
338-
[{ return matchFpTruncFpTrunc(*${root}, MRI); }]),
339-
(apply [{ applyFpTruncFpTrunc(*${root}, MRI, B); }])
340-
>;
335+
// def lower_fptrunc_fptrunc: GICombineRule<
336+
// (defs root:$root),
337+
// (match (wip_match_opcode G_FPTRUNC):$root,
338+
// [{ return matchFpTruncFpTrunc(*${root}, MRI); }]),
339+
// (apply [{ applyFpTruncFpTrunc(*${root}, MRI, B); }])
340+
// >;
341341

342342
// Post-legalization combines which should happen at all optimization levels.
343343
// (E.g. ones that facilitate matching for the selector) For example, matching
@@ -347,7 +347,7 @@ def AArch64PostLegalizerLowering
347347
[shuffle_vector_lowering, vashr_vlshr_imm,
348348
icmp_lowering, build_vector_lowering,
349349
lower_vector_fcmp, form_truncstore, fconstant_to_constant,
350-
vector_sext_inreg_to_shift, lower_fptrunc_fptrunc,
350+
vector_sext_inreg_to_shift,
351351
unmerge_ext_to_unmerge, lower_mulv2s64,
352352
vector_unmerge_lowering, insertelt_nonconst,
353353
unmerge_duplanes]> {

llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ unsigned getCmpOperandFoldingProfit(Register CmpOp, MachineRegisterInfo &MRI) {
905905
// Checks that the given definition belongs to an FPTRUNC and that the source is
906906
// not an integer, as no rounding is necessary due to the range of values
907907
bool isFPTruncFromDouble(MachineRegisterInfo &MRI, MachineInstr *MaybeFpTrunc) {
908-
if (!MaybeFpTrunc || MaybeFpTrunc->getOpcode() != TargetOpcode::G_FPTRUNC)
908+
if (!MaybeFpTrunc || MaybeFpTrunc->getOpcode() != TargetOpcode::G_FPTRUNC_ODD)
909909
return false;
910910

911911
// Check the source is 64 bits as we only want to match a very specific

0 commit comments

Comments
 (0)