Revert "[CodeGenPrepare] Scan past debug intrinsics to find select candidates (NFC)"
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 28 Aug 2018 00:55:19 +0000 (00:55 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 28 Aug 2018 00:55:19 +0000 (00:55 +0000)
commit7d30653259ea08b06945239c2124d13a7401ee53
treea74b8fde3be01f3119a67dbeee12e13c72d8216e
parent6a9aa02ff3c4a6bfbcb2caa7955e881c99c4ab6c
Revert "[CodeGenPrepare] Scan past debug intrinsics to find select candidates (NFC)"

This causes crashes due to the interleaved dbg.value intrinsics being
left at the end of basic blocks, causing the actual terminators (br,
etc) to be not where they should be (not at the end of the block),
leading to later crashes.

Further discussion on the original commit thread.

This reverts commit r340368.

llvm-svn: 340794
llvm/lib/CodeGen/CodeGenPrepare.cpp