[if-converter] Handle BBs that terminate in ret during diamond conversion
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 19 Apr 2018 17:26:46 +0000 (17:26 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 19 Apr 2018 17:26:46 +0000 (17:26 +0000)
commitfbee8574ab2e0656229bbb7ccd220ae22e95f8d9
tree4d18e17c58ab5e06d42bb9d60288454098029f2e
parent2a9a83cd3f4b1993cf657193e28ca0f4f06489f4
[if-converter] Handle BBs that terminate in ret during diamond conversion

This fixes https://llvm.org/PR36825.

Original patch by Valentin Churavy (D45218).

Differential Revision: https://reviews.llvm.org/D45731

llvm-svn: 330345
llvm/lib/CodeGen/IfConversion.cpp
llvm/test/CodeGen/Hexagon/ifcvt-diamond-ret.mir [new file with mode: 0644]
llvm/test/CodeGen/MIR/PowerPC/ifcvt-diamond-ret.mir [new file with mode: 0644]