[CodeGenPrepare] Scan past debug intrinsics to find select candidates (NFC)
authorVedant Kumar <vsk@apple.com>
Tue, 21 Aug 2018 23:42:38 +0000 (23:42 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 21 Aug 2018 23:42:38 +0000 (23:42 +0000)
commit00e7558edde5ce7d065468b40167a5f31f0a44be
tree31c39c1b1693a331a9898d58e6eed12b1eb63e5c
parentfbc3873be940c798dab32fdf96efe061f178adc3
[CodeGenPrepare] Scan past debug intrinsics to find select candidates (NFC)

In optimizeSelectInst, when scanning for candidate selects to rewrite
into branches, scan past debug intrinsics. This makes the debug-enabled
and non-debug paths through optimizeSelectInst more congruent.

NFC because every select is eventually visited either way.

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