Fix for PR18396: Assertion: MO->isDead "Cannot fold physreg def".
authorAndrew Trick <atrick@apple.com>
Tue, 7 Jan 2014 07:31:10 +0000 (07:31 +0000)
committerAndrew Trick <atrick@apple.com>
Tue, 7 Jan 2014 07:31:10 +0000 (07:31 +0000)
commit9c15f4c9c98d884ff5427df69f9859a95b75c2fb
tree0ab46ac28a7eecc2b48c939ded7d50cbcf2aabeb
parentb4e0c9b85d7a6c5adc05059c85e4cc52dd2d92b2
Fix for PR18396: Assertion: MO->isDead "Cannot fold physreg def".

InlineSpiller::foldMemoryOperand needs to handle undef call operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198679 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/InlineSpiller.cpp
test/CodeGen/X86/fold-call-oper.ll [new file with mode: 0644]