[PATCH] SROA: extract instead of shuffle when performing vector/array type punning
David Majnemer
david.majnemer at gmail.com
Sat Feb 7 18:15:13 PST 2015
================
Comment at: lib/Transforms/Scalar/SROA.cpp:3065
@@ -3005,2 +3064,3 @@
Src = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "load");
- Src = extractVector(IRB, Src, BeginIndex, EndIndex, "vec");
+ // TODO(jfb) Improve this: in some cases we can figure out a better target
+ // type which would allow generating an extract directly.
----------------
TODO(name) is not typical LLVM style.
http://reviews.llvm.org/D7487
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list