[PATCH] D92247: [IR][LoopRotate] avoid leaving phi with no operands (PR48296)

Chris Lattner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 28 08:28:08 PST 2020


lattner added a comment.

I don't think this is the right way to go, this breaks the invariant that # inputs to a phi node should match the # predecessors to a block.  I'd recommend allowing zero input phi nodes in zero-predecessor blocks.  I'm not sure why we ban zero input phi nodes right now.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92247/new/

https://reviews.llvm.org/D92247



More information about the llvm-commits mailing list