[llvm-dev] Running CSE within my pass

Hiroshi Yamauchi via llvm-dev llvm-dev at lists.llvm.org
Tue Apr 7 09:28:24 PDT 2020

In general, I think you may want to consider

- structuring what you want to do into a sequence of passes and insert the
CSE pass where you need it,
- writing your pass in a way that CSE can be delayed until after the pass,
- writing CSE (or whatever functionality) as a utility and call it wherever
you want (if it's simple enough and does not require dependencies on other

if possible.

That may not always work, however.

On Mon, Apr 6, 2020 at 9:50 AM Ejjeh, Adel via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi All
> I am trying to figure out how to run CSE within my pass (in the middle
> after making changes to the CFG), however it seems like the CSE pass
> functionality is not exposed. Any suggestions? Am I missing something?
> Thanks
> -Adel
> --
> *Adel Ejjeh*
> PhD Candidate - Computer Science
> University of Illinois at Urbana-Champaign
> 201 N Goodwin Ave, Urbana, IL 61801
> aejjeh at illinois.edu | adel.ejjeh at gmail.com
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200407/ddc81805/attachment.html>

More information about the llvm-dev mailing list