This is an archive of the discontinued LLVM Phabricator instance.

[unittests] demonstrate User::replaceUsesOfWith() breaking CallBrInst
AbandonedPublic

Authored by nickdesaulniers on Feb 20 2020, 9:16 PM.

Details

Reviewers
void
Summary

Also, refactor CallBrInstruction IRTest. Run via:

$ ninja IRTests
$ ./unittests/IR/IRTests --gtest_filter=InstructionsTest.CallBrInstruction

Link: https://github.com/ClangBuiltLinux/linux/issues/896

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2020, 9:16 PM

whoops, didn't mean to commit all that, let me drop some of this.

  • drop mistakenly committed hacked up files
  • git-clang-format HEAD~2
nickdesaulniers planned changes to this revision.Feb 20 2020, 9:21 PM

Can't land this test as is, because it would be red, due to User::replaceUsesOfWith() not updating the asm's argparam.

Harbormaster completed remote builds in B46971: Diff 245786.
Harbormaster completed remote builds in B46972: Diff 245787.
  • I hate phab

F!#$ I updated the wrong phab link!!!!!!!!!!!

  • restore to rebased version
nickdesaulniers abandoned this revision.Aug 17 2022, 9:40 AM

This is no longer an issue after https://github.com/llvm/llvm-project/commit/2a721374aef3 since we now use !i placeholders to denote that these inputs are implicit; they're no longer listed twice in the operand list.

Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2022, 9:40 AM