[X86] In X86FlagsCopyLowering, when rewriting a memory setcc we need to emit an expli...
authorCraig Topper <craig.topper@intel.com>
Wed, 11 Apr 2018 01:09:10 +0000 (01:09 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 11 Apr 2018 01:09:10 +0000 (01:09 +0000)
commitee2c1dea4d9bb318da8af18d1bfadad8f7ce8013
tree97a70419edd2488c16d9aa5367cce11d56ab91e9
parent2b3846306d4ef05fdf47d0e7d5751449dcc0e8d4
[X86] In X86FlagsCopyLowering, when rewriting a memory setcc we need to emit an explicit MOV8mr instruction.

Previously the code only knew how to handle setcc to a register.

This should fix a crash in the chromium build.

llvm-svn: 329771
llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
llvm/test/CodeGen/X86/flags-copy-lowering.mir