Revert "[CodeExtractor] Don't create bitcasts when inserting lifetime markers (NFCI)"
authorVedant Kumar <vsk@apple.com>
Thu, 22 Oct 2020 18:11:12 +0000 (11:11 -0700)
committerVedant Kumar <vsk@apple.com>
Thu, 22 Oct 2020 19:25:50 +0000 (12:25 -0700)
commit099bffe7f7df41d66195ce33e91888a4a16c6b4a
treece2519a8347c1a4a09652b0bcf1ab2972c15d63b
parent36ce915ac54a97d40c8e340afe7d46398d97b4ee
Revert "[CodeExtractor] Don't create bitcasts when inserting lifetime markers (NFCI)"

This reverts commit 26ee8aff2b85ee28a2b2d0b1860d878b512fbdef.

It's necessary to insert bitcast the pointer operand of a lifetime
marker if it has an opaque pointer type.

rdar://70560161
llvm/lib/Transforms/Utils/CodeExtractor.cpp
llvm/test/Transforms/CodeExtractor/PartialInlineInvokeProducesOutVal.ll
llvm/test/Transforms/HotColdSplit/lifetime-markers-on-inputs-1.ll
llvm/test/Transforms/HotColdSplit/lifetime-markers-on-inputs-2.ll
llvm/test/Transforms/HotColdSplit/split-phis-in-exit-blocks.ll