[PATCH] D82341: [PowerPC] add store (load float*) pattern to isProfitableToHoist
ChenZheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 22 19:21:01 PDT 2020
shchenz created this revision.
shchenz added reviewers: jsji, nemanjai, hfinkel, PowerPC.
Herald added subscribers: llvm-commits, wuzish, kbarton, hiraditya.
Herald added a project: LLVM.
`store (load float*)` can be optimized to `store(load i32)` in InstCombine pass.
Add `store (load float*)` to `isProfitableToHoist` to make sure we don't break the opt in `InstCombine` pass.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82341
Files:
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/Transforms/SimplifyCFG/PowerPC/prefer-load-i32.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82341.272585.patch
Type: text/x-patch
Size: 4248 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200623/aa0b2d95/attachment.bin>
More information about the llvm-commits
mailing list