[X86] Add DAG combine to turn (vzext_movl (vbroadcast_load)) -> vzext_load.
authorCraig Topper <craig.topper@gmail.com>
Sun, 8 Mar 2020 08:15:26 +0000 (00:15 -0800)
committerCraig Topper <craig.topper@gmail.com>
Sun, 8 Mar 2020 08:35:40 +0000 (00:35 -0800)
commit70e4fb8a53984ff57b503cf13706c7e6683d650e
tree334327d882f3df3f3d5712a746ebcc4562699d96
parent0bec7e47d0ab99958854c52fa0b68d20e14f763f
[X86] Add DAG combine to turn (vzext_movl (vbroadcast_load)) -> vzext_load.

If we're zeroing the other elements then we don't need the broadcast.
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vector-extend-inreg.ll