Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DAG] Fold (mul (sext (add_nsw x, c1)), c2) -> (add (mul (sext x), c2), c1*c2) #69667

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LiqinWeng
Copy link
Contributor

No description provided.

@llvmbot llvmbot added the llvm:SelectionDAG SelectionDAGISel as well label Oct 20, 2023
@github-actions
Copy link

github-actions bot commented Oct 20, 2023

✅ With the latest revision this PR passed the C/C++ code formatter.

@topperc
Copy link
Collaborator

topperc commented Oct 20, 2023

I think maybe we should implement RISCVTTIImpl::shouldConsiderAddressTypePromotion for RISC-V. Which enables CodeGenPrepare to do some address optimizations. I have a patch for that in my downstream I can try to extract.

@LiqinWeng
Copy link
Contributor Author

I think maybe we should implement RISCVTTIImpl::shouldConsiderAddressTypePromotion for RISC-V. Which enables CodeGenPrepare to do some address optimizations. I have a patch for that in my downstream I can try to extract.

OK, I will abandon this patch

@LiqinWeng
Copy link
Contributor Author

I think maybe we should implement RISCVTTIImpl::shouldConsiderAddressTypePromotion for RISC-V. Which enables CodeGenPrepare to do some address optimizations. I have a patch for that in my downstream I can try to extract.

Hi, Is this currently implemented? @topperc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:X86 llvm:SelectionDAG SelectionDAGISel as well
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants