[PATCH] D28578: [GlobalISel] correctly record PHI sources coming from switch instructions
Quentin Colombet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 13 13:58:30 PST 2017
qcolombet accepted this revision.
qcolombet added a comment.
This revision is now accepted and ready to land.
Hi Tim,
LGTM, one nitpick below.
Cheers,
-Quentin
================
Comment at: include/llvm/CodeGen/GlobalISel/IRTranslator.h:405
+ /// represented simply by the IR-level CFG.
+ void addMachineCFGPred(CFGEdge Edge, MachineBasicBlock *NewPred);
+
----------------
t.p.northover wrote:
> qcolombet wrote:
> > const CFGEdge &, MachineBasicBlock &
> I did think about this at the time, but decided a pair of pointers was simple enough to pass by value. I can change it, but I'm not convinced there's a strong argument either way.
Fine by me. I would still turn the pointer to NewPred into a reference though. That makes it obvious nullptr is not a valid argument :).
Repository:
rL LLVM
https://reviews.llvm.org/D28578
More information about the llvm-commits
mailing list