<div dir="ltr">No test coverage?<br><br>I'm assuming creating the MCSubtargetInfo with the function's feature string (rather than an empty string) would fix bugs where function-specific feature strings were not respected? Perhaps an example of that could be tested?<br><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 3, 2018 at 2:20 AM Alex Bradbury via Phabricator via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">asb created this revision.<br>
asb added reviewers: fhahn, rengolin.<br>
Herald added subscribers: kristof.beyls, javed.absar, aemerson.<br>
<br>
After <a href="https://reviews.llvm.org/D41349" rel="noreferrer" target="_blank">https://reviews.llvm.org/D41349</a>, we can now directly access MCSubtargetInfo from createARM*AsmBackend. This patch makes use of this, avoiding the need to create a fresh MCSubtargetInfo (which was previously always done with a blank CPU and feature string). Given the total size of the change remains pretty tiny and we're removing the old explicit destructor, I changed the STI field to a reference rather than a pointer.<br>
<br>
<br>
<a href="https://reviews.llvm.org/D41693" rel="noreferrer" target="_blank">https://reviews.llvm.org/D41693</a><br>
<br>
Files:<br>
  lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp<br>
  lib/Target/ARM/MCTargetDesc/ARMAsmBackend.h<br>
  lib/Target/ARM/MCTargetDesc/ARMAsmBackendDarwin.h<br>
  lib/Target/ARM/MCTargetDesc/ARMAsmBackendELF.h<br>
  lib/Target/ARM/MCTargetDesc/ARMAsmBackendWinCOFF.h<br>
  lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.h<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div></div>