This is an archive of the discontinued LLVM Phabricator instance.

[FuzzMutate] Correct type cast and add unit test for FCmp
ClosedPublic

Authored by oakrc on Apr 21 2023, 4:06 PM.

Details

Summary

This revision fixes an incorrect type cast from Instruction to ICmpInstr, which should have been to FCmpInstr instead. It turns out that StrategiesTest.cpp was missing a test case for InstModificationIRStrategy and FCmp, which is also now implemented in this revision. After this revision, llvm-stress in D148854 no longer crashes randomly.

Diff Detail

Event Timeline

oakrc created this revision.Apr 21 2023, 4:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 21 2023, 4:06 PM
oakrc requested review of this revision.Apr 21 2023, 4:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 21 2023, 4:06 PM
oakrc added a reviewer: Peter.Apr 21 2023, 4:21 PM
Peter accepted this revision.Apr 21 2023, 4:21 PM
This revision is now accepted and ready to land.Apr 21 2023, 4:21 PM
This revision was landed with ongoing or failed builds.Apr 21 2023, 4:37 PM
This revision was automatically updated to reflect the committed changes.

The commit does not list the original author as the author.

If a patch is not uploaded with arc diff 'HEAD^', arc patch D148972 does not have the author information. You'll need to fix it with git commit --amend --author=

Peter added a comment.Apr 21 2023, 6:28 PM

The commit does not list the original author as the author.

If a patch is not uploaded with arc diff 'HEAD^', arc patch D148972 does not have the author information. You'll need to fix it with git commit --amend --author=

Thanks, it's my first time to commit for someone, I am working on it. It's already pushed to main, so can I revert that change and push a new commit again?

Peter added a comment.Apr 25 2023, 5:30 PM

The commit does not list the original author as the author.

If a patch is not uploaded with arc diff 'HEAD^', arc patch D148972 does not have the author information. You'll need to fix it with git commit --amend --author=

Done.