[PATCH] D68544: [X86][AVX] Access a scalar float/double as a free extract from a broadcast load (PR43217)
    Simon Pilgrim via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Oct  5 15:18:20 PDT 2019
    
    
  
RKSimon created this revision.
RKSimon added reviewers: craig.topper, spatel, lebedev.ri.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
If a fp scalar is loaded and then used as both a scalar and a vector broadcast, perform the load as a broadcast and then extract the scalar for 'free' from the 0th element.
This involved switching the order of the X86ISD::BROADCAST combines so we only convert to X86ISD::BROADCAST_LOAD once all other canonicalizations have been attempted.
Fixed PR43217
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D68544
Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/avx-vbroadcast.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68544.223387.patch
Type: text/x-patch
Size: 6719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191005/902e2bd6/attachment.bin>
    
    
More information about the llvm-commits
mailing list