Skip to content
Commit 21d3871b authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[InstCombine] fold not-shift of signbit to icmp+zext, part 2

Follow-up to:
6c39a3aa

That converted a pattern with ashr directly to icmp+zext, and
this updates the pattern that we used to convert to.

This canonicalizes to icmp for better analysis in the minimum case
and shortens patterns where the source type is not the same as dest type:
https://alive2.llvm.org/ce/z/tpXJ64
https://alive2.llvm.org/ce/z/dQ405O

This requires an adjustment to an icmp transform to avoid infinite looping.
parent 310eea1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment