Skip to content

Commit ef2f971

Browse files
committed
MIR: cancel modify on vector fma
1 parent e00e4e8 commit ef2f971

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

lib/mir/passes/pass_builder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
#include "mir/passes/pass_manager.hpp"
66

77
// Analysis
8-
#include "mir/passes/analysis/liveanalysis.hpp"
9-
#include "mir/passes/analysis/loop_analysis.hpp"
108
#include "mir/passes/analysis/branch_freq_analysis.hpp"
119
#include "mir/passes/analysis/domtree_analysis.hpp"
10+
#include "mir/passes/analysis/liveanalysis.hpp"
11+
#include "mir/passes/analysis/loop_analysis.hpp"
1212

1313
// Transforms
1414
#include "mir/passes/transforms/CFGsimplify.hpp"
15-
#include "mir/passes/transforms/codelayout.hpp"
1615
#include "mir/passes/transforms/CopyPropagation.hpp"
1716
#include "mir/passes/transforms/FusedAddr.hpp"
1817
#include "mir/passes/transforms/ICF_TailDup.hpp"
@@ -21,6 +20,7 @@
2120
#include "mir/passes/transforms/PreRAlegalize.hpp"
2221
#include "mir/passes/transforms/RA.hpp"
2322
#include "mir/passes/transforms/RedundantLoadEli.hpp"
23+
#include "mir/passes/transforms/codelayout.hpp"
2424
#include "mir/passes/transforms/isel.hpp"
2525
#include "mir/passes/transforms/licm.hpp"
2626
#include "mir/passes/transforms/lowering.hpp"

lib/mir/passes/transforms/peephole.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "mir/armv8/base.hpp"
77
#include "mir/info.hpp"
88
#include "mir/tools.hpp"
9+
#include "utils/logger.hpp"
910
#include <cstdint>
1011
#include <iterator>
1112
#include <optional>
@@ -518,7 +519,7 @@ bool GenericPeepholeImpl::MA(MatchInfo &info) {
518519

519520
///@warning https://ilinuxkernel.com/?p=1546
520521
if (!inSet(minst->opcode<OpC>(), OpC::InstAdd, OpC::InstSub, OpC::InstVAdd,
521-
OpC::InstVSub /* OpC::InstFAdd, OpC::InstFSub */)) {
522+
OpC::InstVSub /* OpC::InstFAdd, OpC::InstFSub, OpC::InstVFAdd, OpC::InstVFSub */)) {
522523
return false;
523524
}
524525

@@ -530,11 +531,6 @@ bool GenericPeepholeImpl::MA(MatchInfo &info) {
530531
return false;
531532
}
532533

533-
if (inSet(newOpC, ARMOpC::MLA_V, ARMOpC::MLS_V) &&
534-
inSet(minst->ensureDef()->type(), OpT::Floatvec2, OpT::Floatvec4)) {
535-
return false;
536-
}
537-
538534
return true;
539535
};
540536

0 commit comments

Comments
 (0)