forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR9218: SimplifyDemandedVectorElts can return a non-null value that i…
…s 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
- Loading branch information
1 parent
86b115c
commit 1347623
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
test/Transforms/InstCombine/2011-02-16-InsertelementHang.ll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |