[llvm] [AArch64] Fold COPY(y:gpr, DUP(x:fpr, i)) -> UMOV(y:gpr, x:fpr, i) (PR #89017)
Dhruv Chawla via llvm-commits
llvm-commits at lists.llvm.org
Tue May 14 04:34:32 PDT 2024
================
@@ -107,6 +108,8 @@ bool AArch64PostSelectOptimize::doPeepholeOpts(MachineBasicBlock &MBB) {
for (auto &MI : make_early_inc_range(make_range(MBB.begin(), MBB.end()))) {
Changed |= foldSimpleCrossClassCopies(MI);
}
+ for (auto &MI : make_early_inc_range(make_range(MBB.begin(), MBB.end())))
----------------
dc03-work wrote:
It is possible to check the return value of `foldSimpleCrossClassCopies` and call `foldCopyDup` based on that, however that can cause a situation where we miss the new instruction that `foldSimpleCrossClassCopies` generates.
https://github.com/llvm/llvm-project/pull/89017
More information about the llvm-commits
mailing list