Use a pointer type for target frame indices during statepoint lowering
authorSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 27 Apr 2017 17:17:16 +0000 (17:17 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 27 Apr 2017 17:17:16 +0000 (17:17 +0000)
commit40c32dd9a0b711bf4d3d46fe1ed3e1e1965695f0
treed196f0259e8889e5d6730467096e4bc5a1c3f942
parenteaaba2b59ee61fba3cbe42de59121aad395c5681
Use a pointer type for target frame indices during statepoint lowering

Summary:
The type of the target frame index is intptr, not the type of the value we're
going to store into it.  Without this change we crash in the attached test case
when trying to type-legalize a TargetFrameIndex.

Patchpoint lowering types the target frame index as intptr as well.

Reviewers: reames, bogner, arsenm

Subscribers: arsenm, mcrosier, llvm-commits

Differential Revision: https://reviews.llvm.org/D32256

llvm-svn: 301566
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
llvm/test/CodeGen/X86/deopt-bundles.ll