This is an archive of the discontinued LLVM Phabricator instance.

[NFC][SimplifyCFG]Precommit test case to show inner-loop metadata may not be preserved
ClosedPublic

Authored by mingmingl on Sep 15 2022, 9:39 PM.

Details

Summary

Diff Detail

Event Timeline

mingmingl created this revision.Sep 15 2022, 9:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2022, 9:39 PM
mingmingl requested review of this revision.Sep 15 2022, 9:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2022, 9:39 PM
mingmingl updated this revision to Diff 460628.Sep 15 2022, 9:41 PM

remove "no newline at the end of file" as a result wrong editor set-up.

davidxl added inline comments.Sep 16 2022, 12:10 AM
llvm/test/Transforms/SimplifyCFG/preserve-llvm-loop-metadata.ll
1–2

is this related change?

mingmingl updated this revision to Diff 461116.Sep 18 2022, 6:26 PM
mingmingl marked an inline comment as done.

resolved comment.

llvm/test/Transforms/SimplifyCFG/preserve-llvm-loop-metadata.ll
1–2

This was added since 'test2' used opaque pointers.

The context is that, even if 'opt' tool uses opaque pointers by default, " opaque pointer mode is automatically disabled for IR and bitcode files that explicitly mention i8* style typed pointers." (from https://llvm.org/docs/OpaquePointers.html#opaque-pointers-mode)

Updated new tests to use i32* (and -opaque-pointer is not required), and will send out a separate patch to clean up this test case.

davidxl accepted this revision.Sep 18 2022, 6:44 PM

lgtm

This revision is now accepted and ready to land.Sep 18 2022, 6:44 PM