]> granicus.if.org Git - llvm/commit
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)
commitca13910a6c9c19ba0d58090fd4bef793b14f2a25
tree3cef0727c7926461c9f7f5f418690b4f19ee1183
parentc2f2a95a8abc8aa8b467b0d198c9490da09a1b59
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360090 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/pr33010.ll [new file with mode: 0644]