Displaying 1 result from an estimated 1 matches for "ahlghy".
Did you mean:
ahigh
2019 Oct 25
2
Where and how to report an optimisation issue that doesn't cause a crash
...erd thing here is if I change the array to be of size 256 and the index to be 'unsigned char', seems like there is no way to access the 'size' field throught "y->ptr[index]" (in your example) but clang still performs the re-read: <a href="https://godbolt.org/z/ahlGHY">https://godbolt.org/z/ahlGHY</a><br /><br /></div>
<div dir="ltr">It looks like clang sees an alias between "int ptr[256]" and "int size"... maybe because they are both "int"? Because changing the type of size to char/sh...