Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 34231 Build 34230: arc lint + arc unit
Event Timeline
llvm/lib/Analysis/ValueTracking.cpp | ||
---|---|---|
3187 | 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 | 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.
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.