I think we need to be sure the load isn't volatile before we
duplicate and shrink it.
Noticed while looking at this code for other reasons. So I don't have
a test case. If we agree this is a bug I can try to add one.
Differential D126353
[X86] Add isSimple check to the load combine in combineExtractVectorElt. craig.topper on May 25 2022, 12:24 AM. Authored by
Details I think we need to be sure the load isn't volatile before we Noticed while looking at this code for other reasons. So I don't have
Diff Detail
Event TimelineComment Actions Test added with: Please rebase and LGTM - this is conservatively correct, and the fact that there were no tests indicates that the missing check was an oversight. |