<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 27, 2012, at 11:08 AM, Hal Finkel wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><blockquote type="cite">load/stores makes sense in that context. I can only enable this if<br></blockquote><blockquote type="cite">its OpenCL, but I think anyone who uses vec3 would want this<br></blockquote><blockquote type="cite">performance win.<br></blockquote><br>Interesting thanks! I was just wondering why there is a performance win<br>at all. I assume that vectors of length 3 are promoted to length-4<br>vectors during legalization currently. Why should declaring them to be<br>length 4 instead of length 3 affect the code quality at all?</div></span></blockquote></div><br><div>Legalize is basic block local, causing it to miss many important optimizations, just because they happen to span blocks.</div><div><br></div><div>-Chris</div></body></html>