[llvm-dev] X86ISelLowering: Promote 'add nsw' to a wider type
Sanjay Patel via llvm-dev
llvm-dev at lists.llvm.org
Tue Jul 19 08:54:20 PDT 2016
Hi Artur -
I don't think there's any reason to limit the transform to sexts only;
that's just the case that was apparent in
https://llvm.org/bugs/show_bug.cgi?id=20134 , so I limited it to that
It's probably worth noting that I'm currently fighting through casts of all
kinds in IR (InstCombine) rather than the backend:
I'm very interested to see what kinds of patterns you're seeing and want to
optimize. It's possible that IR transforms could eliminate the need for the
backend fixups...or it could make them harder. Are there bug reports for
the cases that you are looking at?
On Tue, Jul 19, 2016 at 9:13 AM, Artur Pilipenko <apilipenko at azulsystems.com
> Hi Sanjay,
> Some time ago you implemented a sext(add_nsw(x, C)) --> add(sext(x),
> C_sext) transformation in X86ISelLowering
> Is there any reason why this transformation is limited to sexts and
> doesn’t support zexts?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev