[all-commits] [llvm/llvm-project] 24633e: [Peephole] Check instructions from CopyMIs are sti...
weiguozhi via All-commits
all-commits at lists.llvm.org
Fri Oct 20 08:34:56 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 24633eac38d46cd4b253ba53258165ee08d886cd
https://github.com/llvm/llvm-project/commit/24633eac38d46cd4b253ba53258165ee08d886cd
Author: weiguozhi <57237827+weiguozhi at users.noreply.github.com>
Date: 2023-10-20 (Fri, 20 Oct 2023)
Changed paths:
M llvm/lib/CodeGen/PeepholeOptimizer.cpp
A llvm/test/CodeGen/X86/peephole-copy.mir
Log Message:
-----------
[Peephole] Check instructions from CopyMIs are still COPY (#69511)
Function foldRedundantCopy records COPY instructions in CopyMIs and uses
it later. But other optimizations may delete or modify it. So before
using it we should check if the extracted instruction is existing and
still a COPY instruction.
More information about the All-commits
mailing list