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

ReplaceAllUsesWith is very slow #148

Open
yowl opened this issue Sep 18, 2020 · 0 comments
Open

ReplaceAllUsesWith is very slow #148

yowl opened this issue Sep 18, 2020 · 0 comments

Comments

@yowl
Copy link
Contributor

yowl commented Sep 18, 2020

This method is very slow, not actually sure it completes as I gave up waiting. Other replace methods such as listed http://llvm.org/docs/ProgrammersManual.html#replacing-an-instruction-with-another-value are not available which make certain compilation tasks awkward and non optimal. E.g. If I want a gep through out a function but dont know the offset until compilation has analysed all the input function, I can't just replace the geps at the end, but have to use an alloca/store/load and insert instructions to create the correct store once the gep offset is known. Are the other replace operations not possible due to the use of iterators?

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

No branches or pull requests

1 participant