Skip to content

Conversation

@Sterling-Augustine
Copy link
Contributor

This also moves the other getNumbits test into UtilsTest.cc where it belongs.

Copy link
Contributor

@vporpo vporpo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw. please also move the remaining utils test to UtilsTest.cpp in a separate PR.


// getNumBits for scalars via the Instruction overload
EXPECT_EQ(
sandboxir::Utils::getNumBits(cast<sandboxir::Instruction>(F->getArg(0))),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should trigger an assertion because F->getArg(0) is not a sandboxir::Instruction.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had been running the SandboxVectorizerTests, not the SandboxIR tests.

Fixed.

Copy link
Contributor

@vporpo vporpo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG, thanks!

@Sterling-Augustine Sterling-Augustine merged commit 2f43272 into llvm:main Oct 1, 2024
5 of 7 checks passed
Sterling-Augustine added a commit to Sterling-Augustine/llvm-project that referenced this pull request Oct 3, 2024
This also moves the other getNumbits test into UtilsTest.cc where it
belongs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants