Fix pr33010, a 2 year old crashing regression
authorPhilip Reames <listmail@philipreames.com>
Mon, 6 May 2019 22:09:31 +0000 (22:09 +0000)
committerPhilip Reames <listmail@philipreames.com>
Mon, 6 May 2019 22:09:31 +0000 (22:09 +0000)
commit2f53d79bff7aa1da5b52c32fec154c0f84984162
tree4fc5edc5c8d06c2080f589dbf5d5fe7cc0e771ec
parent415da713559472a24ff41a36cfa69292317087d3
Fix pr33010, a 2 year old crashing regression

The problem was that we were creating a CMOV64rr <TargetFrameIndex>, <TargetFrameIndex>.  The entire point of a TFI is that address code is not generated, so there's no way to legalize/lower this.  Instead, simply prevent it's creation.

Arguably, we shouldn't be using *Target*FrameIndices in StatepointLowering at all, but that's a much deeper change.

llvm-svn: 360090
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/pr33010.ll [new file with mode: 0644]