[DAG] Combine fshl/fshr(load1,load0,c) if we have consecutive loads
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 6 Mar 2020 11:36:00 +0000 (11:36 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 6 Mar 2020 11:36:18 +0000 (11:36 +0000)
commit7202d9cde9d23ba94c7f09fd6b5eafc437136542
treeda8fc91cda1eba8f67c076b0ed406f768931fd76
parente4ceb8f4217d9203ecd7134d5fe2bac6d49c724d
[DAG] Combine fshl/fshr(load1,load0,c) if we have consecutive loads

As noted on D75114, if both arguments of a funnel shift are consecutive loads we are missing the opportunity to combine them into a single load.

Differential Revision: https://reviews.llvm.org/D75624
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/fshl.ll
llvm/test/CodeGen/X86/fshr.ll