Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/lib/Analysis/ValueTracking.cpp | ||
---|---|---|
3187 ↗ | (On Diff #207449) | Does this work recursively? For example, [5 x [0 x i32]]. It might be easier to just check the size of the type. Actually, we should probably constant-fold [0 x i8] zeroinitializer etc., to [0 x i8] undef, since there isn't any actual data anyway. That would make this check unnecessary. |
llvm/lib/Analysis/ValueTracking.cpp | ||
---|---|---|
3187 ↗ | (On Diff #207449) | Yep, recursive did not work and size looks simpler. |
Comment Actions
This is not a lot of code, so LGTM, but I agree that constant folding would be even better.