[PATCH] D95703: [GlobalISel] Propagate extends through G_PHIs into the incoming value blocks.
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 1 10:30:04 PST 2021
paquette added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:3597
+ SmallPtrSet <MachineInstr*, 4> InSrcs;
+ for (unsigned Idx = 1; Idx < MI.getNumOperands(); Idx += 2)
+ InSrcs.insert(getDefIgnoringCopies(MI.getOperand(Idx).getReg(), MRI));
----------------
aemerson wrote:
> paquette wrote:
> > This can have at most 3 elements before returning false, so I guess you might as well cut the loop short here.
> Unless I'm misunderstanding, this would prevent us from knowing how many unique incoming values there are, if we stop early. G_PHIs can have any number of operands.
Oh, I see. Makes sense.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95703/new/
https://reviews.llvm.org/D95703
More information about the llvm-commits
mailing list