Skip to content
  • Tony Jiang's avatar
    [Power9] Exploit vector integer extend instructions when indices aren't correct. · 9a91a181
    Tony Jiang authored
    This patch adds on to the exploitation added by https://reviews.llvm.org/D33510.
    This now catches build vector nodes where the inputs are coming from sign
    extended vector extract elements where the indices used by the vector extract
    are not correct. We can still use the new hardware instructions by adding a
    shuffle to move the elements to the correct indices. I introduced a new PPCISD
    node here because adding a vector_shuffle and changing the elements of the
    vector_extracts was getting undone by another DAG combine.
    
    Commit on behalf of Zaara Syeda (syzaara@ca.ibm.com)
    Differential Revision: https://reviews.llvm.org/D34009
    
    llvm-svn: 307169
    9a91a181
Loading