diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-02-19 22:42:40 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-02-19 22:42:40 +0000 |
commit | 1347623aaf25b7fe6486479353fc87bd7541a5f7 (patch) | |
tree | b582246cc63d446a70dbc262e6c14b34d96805b2 /test | |
parent | 86b115c78b6c50c7fedbeab80128b2dcbc3cfc57 (diff) | |
download | llvm-1347623aaf25b7fe6486479353fc87bd7541a5f7.tar.gz llvm-1347623aaf25b7fe6486479353fc87bd7541a5f7.tar.bz2 llvm-1347623aaf25b7fe6486479353fc87bd7541a5f7.tar.xz |
PR9218: SimplifyDemandedVectorElts can return a non-null value that is not
the instruction passed in. Make sure to account for this correctly, instead
of looping infinitely.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/2011-02-16-InsertelementHang.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2011-02-16-InsertelementHang.ll b/test/Transforms/InstCombine/2011-02-16-InsertelementHang.ll new file mode 100644 index 0000000000..2f6034e158 --- /dev/null +++ b/test/Transforms/InstCombine/2011-02-16-InsertelementHang.ll @@ -0,0 +1,11 @@ +; RUN: opt < %s -instcombine -S | FileCheck %s +; PR9218 + +%vec2x2 = type { <2 x double>, <2 x double> } + +define %vec2x2 @split(double) nounwind alwaysinline { +; CHECK: @split +; CHECK: ret %vec2x2 undef + %vba = insertelement <2 x double> undef, double %0, i32 2 + ret <2 x double> %vba, <2 x double> %vba +} |