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.
Paths
| Differential D126353
[X86] Add isSimple check to the load combine in combineExtractVectorElt. ClosedPublic Authored by craig.topper on May 25 2022, 12:24 AM.
Details Summary 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 Timelinespatel mentioned this in rGd5ebba2aa683: [x86] add test with volatile load; NFC.May 25 2022, 5:19 AM Comment 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. This revision is now accepted and ready to land.May 25 2022, 5:25 AM This revision was landed with ongoing or failed builds.May 25 2022, 9:11 AM Closed by commit rG06fee478d217: [X86] Add isSimple check to the load combine in combineExtractVectorElt. (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 432016 llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/extractelement-load.ll
|