[PATCH] D29495: [SelectionDAG] In InstrEmitter, handle EXTRACT_SUBREG of a physical register.

Geoff Berry via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 3 08:39:28 PST 2017


gberry created this revision.
Herald added subscribers: mcrosier, aemerson.

Without this change, the getVR() call would hit an assert since it was
being passed a physical register.

Update the AArch64/ldst-opt.ll test with a case that triggers this
behavior by adding a run with strict-align, which causes an unaligned
STR XZR instruction to be split into byte stores, creating an
EXTRACT_SUBREG of XZR that triggers the original problem.


https://reviews.llvm.org/D29495

Files:
  lib/CodeGen/SelectionDAG/InstrEmitter.cpp
  test/CodeGen/AArch64/ldst-opt.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29495.86968.patch
Type: text/x-patch
Size: 11243 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170203/36c25031/attachment.bin>


More information about the llvm-commits mailing list