The visitICmp analysis function would record compares of pointer types, as size 0. This causes the resulting memcmp() call to have the wrong total size.
Found with "self-build" of clang/LLVM on Windows.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks !
test/Transforms/MergeICmps/X86/int64-and-ptr.ll | ||
---|---|---|
3 | move this after the comment ? ; 8-byte int and 8-byte pointer should merge into a 16-byte memcpy. ; X86: memcmp(i8* {{.*}}, i8* {{.*}}, i64 16) |
Comment Actions
One more favor to ask: Could I please have some help committing this fix? I'm new to the project and don't have write access yet...
move this after the comment ?