[PATCH] [X86] Replace avx2.pbroadcast intrinsics with native IR.
spatel at rotateright.com
Fri Jun 19 08:00:53 PDT 2015
Hi Ahmed -
I had a similar patch in http://reviews.llvm.org/D8276, but then it was pointed out that this may not be the best solution. The concern is that doing it this way may alter/optimize code at -O0 (debugging vector code is hard enough without the damn compiler getting in the way!).
So for my next patch on this front, http://reviews.llvm.org/D8486, I used instcombine so there would be no changes in the front-end or -O0.
Adding some other folks who might have an opinion about the best way forward.
More information about the llvm-commits