[llvm-commits] Patch: vector shuffle for generalized vector shuffle

Duncan Sands duncan.sands at math.u-psud.fr
Fri Nov 7 12:07:13 PST 2008


Hi Mon Ping, I can't help feeling that rather than repeating almost
the same code twice, you could use a loop instead.  Then you can
"inline" DeterVectorShuffleUse, which as far as I can see can lead
to additional simplifications (it also seems to be written in a kind
of complicated way).  In fact, you can determine which lo/hi parts
to use on the fly as you work your way down the mask, building the
new mask vector as you go, rather than prescanning the mask, then
building the new mask vector afterwards.  Just some thoughts.

Ciao,

Duncan.



More information about the llvm-commits mailing list