ScopInfo: Polish the implementation of mapToDimension
authorTobias Grosser <tobias@grosser.es>
Mon, 21 Dec 2015 22:45:53 +0000 (22:45 +0000)
committerTobias Grosser <tobias@grosser.es>
Mon, 21 Dec 2015 22:45:53 +0000 (22:45 +0000)
commitcbf7ae8fef4d40248f9b0ff9f2b56546395eebb6
tree8bc95261c3d83a602e341639dcd4ea645d57e786
parented61ae6cde6d278ae1c2c794686fa98d9f696cd5
ScopInfo: Polish the implementation of mapToDimension

Besides improving the documentation and the code we now assert in case the input
is invalid (N < 0) and also do not any more return a nullptr in case USet is
empty. This should make the code more readable.

llvm-svn: 256208
polly/lib/Analysis/ScopInfo.cpp