diff options
| -rw-r--r-- | llvm/test/Regression/Transforms/LICM/2003-02-27-StoreSinkPHIs.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/LICM/2003-02-27-StoreSinkPHIs.ll b/llvm/test/Regression/Transforms/LICM/2003-02-27-StoreSinkPHIs.ll new file mode 100644 index 00000000000..18193e1617e --- /dev/null +++ b/llvm/test/Regression/Transforms/LICM/2003-02-27-StoreSinkPHIs.ll @@ -0,0 +1,13 @@ +; LICM is adding stores before phi nodes. bad. + +; RUN: as < %s | opt -licm + +bool %test(bool %c) { + br bool %c, label %Loop, label %Out +Loop: + store int 0, int* null + br bool %c, label %Loop, label %Out +Out: + %X = phi bool [%c, %0], [true, %Loop] + ret bool %X +} |

