[X86] canonicalizeShuffleWithBinOps - shuffle oneuse constants.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 7 Mar 2021 11:17:03 +0000 (11:17 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 7 Mar 2021 11:17:03 +0000 (11:17 +0000)
commit772a501bf41fd15294192b9522c4567a9fc25834
treefa48a1ff62214a8bdaff38548f8b4db650f55cc4
parentab67fd39fc144d911d926c4db886d301061d1368
[X86] canonicalizeShuffleWithBinOps - shuffle oneuse constants.

We can freely shuffle all ones/zeros constants but we can also freely shuffle other constants as long as they only have one use.
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/promote-cmp.ll