This is an archive of the discontinued LLVM Phabricator instance.

Change long to int64_t (which is always 64 bit or 8 bytes )
ClosedPublic

Authored by umesh.kalappa0 on Jul 25 2022, 9:54 AM.

Details

Summary

The changes fix the issue
https://github.com/llvm/llvm-project/issues/55911

We can't guarantee the long always 64 bits like WINDOWS or LLP64 data model (rare but we should consider).

So use int64_t from inttypes.h and safe in this case.

Diff Detail

Event Timeline

umesh.kalappa0 created this revision.Jul 25 2022, 9:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2022, 9:54 AM
umesh.kalappa0 requested review of this revision.Jul 25 2022, 9:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2022, 9:54 AM
efriedma added inline comments.Jul 25 2022, 10:46 AM
llvm/test/CodeGen/PowerPC/pr55911.ll
2

Missing RUN line.

Might be worth adding some comment explaining what, exactly, this is checking for.

umesh.kalappa0 accepted this revision.Jul 25 2022, 9:53 PM
umesh.kalappa0 updated this revision to Diff 447560.
umesh.kalappa0 edited the summary of this revision. (Show Details)
umesh.kalappa0 marked an inline comment as done.
This revision is now accepted and ready to land.Jul 25 2022, 9:53 PM
efriedma accepted this revision.Jul 26 2022, 10:28 AM

LGTM with formatting fixed.

llvm/lib/Target/PowerPC/PPCFastISel.cpp
844–845

clang-format is complaining this line is too long.

Might as well remove unnecessary parentheses around IsZExt while you're here.

@efriedma ,can you commit the same please ,since we don't have the commit access ?

efriedma closed this revision.Jul 27 2022, 9:48 AM

f38ea84a9f32058f3c2813b6f29b840c59de118c (forgot to put the "differential revision" line)