[AArch64] AArch64TargetLowering::computeKnownBitsForTargetNode - add support for AArch64ISD::MOV/MVN constants
Followup to #148596
AArch64TargetLowering::computeKnownBitsForTargetNode is still missing for the following constant nodes:
case AArch64ISD::MOVIedit:
case AArch64ISD::MOVImsl:
case AArch64ISD::MVNIshift:
case AArch64ISD::MVNImsl:
As its tricky to get codegen folds to consistently use these, it might be easiest to add test coverage to AArch64SelectionDAGTest.cpp (there are already some computeKnownBits tests in there) - adding unit test coverage for the existing AArch64ISD::MOVI and AArch64ISD::MOVIshift handling would be useful there as well.
CC @aabhinavg1
Hi!
This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
- Check that no other contributor is working on this issue. If someone is assigned to the issue or claimed to be working on it, ping the person. After one week without a response, the assignee may be changed.
- Leave a comment indicating that you are working on the issue, or just create a pull request after following the steps below. Mention this issue in the description of the pull request.
- Fix the issue locally.
- Run the test suite locally. Remember that the subdirectories under
test/create fine-grained testing targets, so you can e.g. usemake check-clang-astto only run Clang's AST tests. - Create a Git commit.
- Run
git clang-format HEAD~1to format your changes. - Open a pull request to the upstream repository on GitHub. Detailed instructions can be found in GitHub's documentation. Mention this issue in the description of the pull request.
If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.
@llvm/issue-subscribers-backend-aarch64
Author: Simon Pilgrim (RKSimon)
AArch64TargetLowering::computeKnownBitsForTargetNode is still missing for the following constant nodes:
case AArch64ISD::MOVIedit:
case AArch64ISD::MOVImsl:
case AArch64ISD::MVNIshift:
case AArch64ISD::MVNImsl:
As its tricky to get codegen folds to consistently use these, it might be easiest to add test coverage to AArch64SelectionDAGTest.cpp (there are already some computeKnownBits tests in there) - adding unit test coverage for the existing AArch64ISD::MOVI and AArch64ISD::MOVIshift handling would be useful there as well.
CC @aabhinavg1
@llvm/issue-subscribers-good-first-issue
Author: Simon Pilgrim (RKSimon)
AArch64TargetLowering::computeKnownBitsForTargetNode is still missing for the following constant nodes:
case AArch64ISD::MOVIedit:
case AArch64ISD::MOVImsl:
case AArch64ISD::MVNIshift:
case AArch64ISD::MVNImsl:
As its tricky to get codegen folds to consistently use these, it might be easiest to add test coverage to AArch64SelectionDAGTest.cpp (there are already some computeKnownBits tests in there) - adding unit test coverage for the existing AArch64ISD::MOVI and AArch64ISD::MOVIshift handling would be useful there as well.
CC @aabhinavg1
@RKSimon I'd like to try this one! Can you assign it to me? Thanks!
Reverted in 7d26150c2a1ce481d0dad25460b4cadcd8945af9