[llvm-dev] Why are generic dag combines run before target dag combines?

Thomas Lively via llvm-dev llvm-dev at lists.llvm.org
Thu Jul 9 19:05:05 PDT 2020


Hi llvm-dev,

I just tried to implement a target-specific dag combine to preempt a
generic dag combine, and I was surprised to see that it didn't work because
the generic dag combines are run first. Does anyone know the rationale for
running the generic dag combines first? I would have expected the target
dag combines to run first because they have more specific information about
what combines will be useful.

Thanks,

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200709/7c8a4891/attachment.html>


More information about the llvm-dev mailing list