[CodeGenPrepare] Exit earlier when optimizing selects (NFC)
authorVedant Kumar <vsk@apple.com>
Tue, 21 Aug 2018 23:42:23 +0000 (23:42 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 21 Aug 2018 23:42:23 +0000 (23:42 +0000)
commitfbc3873be940c798dab32fdf96efe061f178adc3
tree4583e9b11212f55bc1a499f4053eab67c70df30a
parenta459b9f7573630ab8a694fd520a8f0764cdf50d6
[CodeGenPrepare] Exit earlier when optimizing selects (NFC)

When optimizing for size, this allows optimizeSelectInst to skip a
linear scan and exit early.

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