[all-commits] [llvm/llvm-project] ad7214: [x86] add load folding restriction to pushAddIntoC...
Sanjay Patel via All-commits
all-commits at lists.llvm.org
Tue Feb 22 05:03:58 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ad7214f23dc3a088d73eb3974b146a0bb09d6ffd
https://github.com/llvm/llvm-project/commit/ad7214f23dc3a088d73eb3974b146a0bb09d6ffd
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2022-02-22 (Tue, 22 Feb 2022)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/test/CodeGen/X86/add-cmov.ll
Log Message:
-----------
[x86] add load folding restriction to pushAddIntoCmovOfConsts()
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.
Fixes #53862
Differential Revision: https://reviews.llvm.org/D120281
More information about the All-commits
mailing list