Skip to content
Commit ca2cfd0b authored by Tobias Grosser's avatar Tobias Grosser
Browse files

[ScopInfo] Do not try to fold array dimensions of size zero

Trying to fold such kind of dimensions will result in a division by zero,
which crashes the compiler. As such arrays are likely to invalidate the
scop anyhow (but are not illegal in LLVM-IR), there is no point in trying
to optimize the array layout. Hence, we just avoid the folding of
constant dimensions of size zero.

llvm-svn: 295415
parent 908e2d90
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment