[IR][LoopRotate] remove assertion that phi must have at least one operand
authorSanjay Patel <spatel@rotateright.com>
Mon, 30 Nov 2020 16:25:07 +0000 (11:25 -0500)
committerSanjay Patel <spatel@rotateright.com>
Mon, 30 Nov 2020 16:32:42 +0000 (11:32 -0500)
commit9eb2c0113dfe2c1054e524122ca0e17ad552bb01
treeac048c513a3f163098cc4bb5e28678b05238eb8f
parent76d1026b59bd04bd31645ab37dd82d1d89daa6d9
[IR][LoopRotate] remove assertion that phi must have at least one operand

This was suggested in D92247 - I initially committed an alternate
fix ( bfd2c216ea ) to avoid the crash/assert shown in
https://llvm.org/PR48296 ,
but that was reverted because it caused msan failures on other
tests. We can try to revive that patch using the test included
here, but I do not have an immediate plan to isolate that problem.
llvm/lib/IR/Verifier.cpp
llvm/test/Transforms/LoopRotate/phi-empty.ll [new file with mode: 0644]