Skip to content
  • Bob Wilson's avatar
    Revert svn r80498 and replace it with a different solution. The only problem · 419160bd
    Bob Wilson authored
    I can see with the original code was that I forgot that this runs after
    type legalization and hence the result type will always be i32. (Custom
    legalization of EXTRACT_VECTOR_ELT is only enabled for vector types with
    8- and 16-bit elements.)
    
    Regarding the FIXME comment: any information about sign and zero-extension
    should be captured by separate extension operations.  The DAG combiner should
    handle those to produce either VGETLANEu or VGETLANEs, and that seems to be
    working now.  If there are cases that we're missing, let me know.
    
    llvm-svn: 84218
    419160bd
Loading