ScopInfo: Return immediately if scop is unprofitable and marked invalid
authorTobias Grosser <tobias@grosser.es>
Mon, 21 Dec 2015 09:09:44 +0000 (09:09 +0000)
committerTobias Grosser <tobias@grosser.es>
Mon, 21 Dec 2015 09:09:44 +0000 (09:09 +0000)
commit594882573e56291e19186724d42b8985cea7c3c2
tree7b05fe27098e42b7ccd47790073e04e4757ffd17
parentbfaf1ae30971a8f62341db03b77057be07b4799d
ScopInfo: Return immediately if scop is unprofitable and marked invalid

As we already log an error when calling invalid, scops unprofitable scops are in
any case marked invalid, but returning immediately safes (a tiny bit of) compile
time and is consistent with our use of 'invalid' in the remainder of the file.

Found by inspection.

llvm-svn: 256140
polly/lib/Analysis/ScopDetection.cpp