With only a load-fold the diffs look neutral. If there's a load and store (rmw) fold opportunity as shown in the test based on #53862, then we end up with an extra instruction.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D120281
[x86] add load folding restriction to pushAddIntoCmovOfConsts() ClosedPublic Authored by spatel on Feb 21 2022, 1:30 PM.
Details Summary With only a load-fold the diffs look neutral. If there's a load and store (rmw) fold opportunity as shown in the test based on #53862, then we end up with an extra instruction.
Diff Detail Event TimelineHerald added subscribers: pengfei, hiraditya, mcrosier. · View Herald TranscriptFeb 21 2022, 1:30 PM This revision is now accepted and ready to land.Feb 21 2022, 10:43 PM This revision was landed with ongoing or failed builds.Feb 22 2022, 5:04 AM Closed by commit rGad7214f23dc3: [x86] add load folding restriction to pushAddIntoCmovOfConsts() (authored by spatel). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 410378 llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/add-cmov.ll
|