[GISel]: DCE copy instructions during legalization
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Fri, 17 Nov 2017 02:44:55 +0000 (02:44 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Fri, 17 Nov 2017 02:44:55 +0000 (02:44 +0000)
commit69855491eee9252f32bf2c2d60374eb75fb9b4e3
treecb92118d3c06061e1e3337ef88e1ac61ba6732fd
parent5584cc48c70cfe46c88ca2df20e9718cfc2dec18
[GISel]: DCE copy instructions during legalization

We might have instructions such as ext(copy(trunc)), and while cleaning
up legalization artifacts, we can also dce the copies that are in
between legalization artifacts.

llvm-svn: 318501
llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
llvm/test/CodeGen/AArch64/GlobalISel/legalize-simple.mir