[llvm-bugs] [Bug 11364] Peephole pass should remove dead code
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 6 06:45:42 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=11364
Sjoerd Meijer <sjoerd.meijer at arm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sjoerd.meijer at arm.com
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #2 from Sjoerd Meijer <sjoerd.meijer at arm.com> ---
the peepholer now understands this case, e.g.:
-- RewriteSource
Replacing: %3:gpr = VMOVRS %1:spr, 14, $noreg
With: %4:gpr = COPY %0:gpr
and
DeadMachineInstructionElim: DELETING: %1:spr = VMOVSR %0:gpr, 14, $noreg
Test case peephole-bitcast.ll was XFAIL'ed, which I have enabled in commit:
https://github.com/llvm/llvm-project/commit/20a1d03d778dedaa91cbf8ff63d4be92c2291ca0
will close this PR.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200206/36efa21a/attachment-0001.html>
More information about the llvm-bugs
mailing list