[PM/LoopUnswitch] Remove a buggy assert in the new loop unswitch.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 23 Apr 2018 06:58:36 +0000 (06:58 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 23 Apr 2018 06:58:36 +0000 (06:58 +0000)
commitbf7190a15470adb31f8df08aa9d61bb2861e7d54
tree0d0bfd116ce1746ca7591b59b880db5464d51059
parent3f1d53816549f4073f73f8cedc36665b1f70df40
[PM/LoopUnswitch] Remove a buggy assert in the new loop unswitch.

The condition this was asserting doesn't actually hold. I've added
comments to explain why, removed the assert, and added a fun test case
reduced out of 403.gcc.

llvm-svn: 330564
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch.ll