[PATCH] D69497: [PowerPC] Fix MI peephole optimization for splats
Kai Luo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 27 21:38:52 PDT 2019
lkail added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/PPCMIPeephole.cpp:431
- if ((FeedImmed == 0 || FeedImmed == 3) && FeedReg1 == FeedReg2) {
+ if ((FeedImmed == 0 || FeedImmed == 3) && FeedRegsSame) {
LLVM_DEBUG(dbgs() << "Optimizing splat/swap or splat/splat "
----------------
Can we just simply check if `FeedReg1` and `FeedReg2` are virtual registers?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69497/new/
https://reviews.llvm.org/D69497
More information about the llvm-commits
mailing list