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.
Fix a pair of issues that caused an infinite loop in reassociate.
Terrifyingly, one of them is a mishandling of floating point vectors in Constant::isZero(). How exactly this issue survived this long is beyond me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253655 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
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
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
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,20 @@ | ||
; RUN: opt -S -reassociate < %s | FileCheck %s | ||
|
||
define void @test1() { | ||
; CHECK-LABEL: @test1 | ||
; CHECK: call | ||
; CHECK: fsub | ||
; CHECK: fadd | ||
%tmp = tail call <4 x float> @blam() | ||
%tmp23 = fsub fast <4 x float> undef, %tmp | ||
%tmp24 = fadd fast <4 x float> %tmp23, undef | ||
tail call void @wombat(<4 x float> %tmp24) | ||
ret void | ||
} | ||
|
||
; Function Attrs: optsize | ||
declare <4 x float> @blam() | ||
|
||
; Function Attrs: optsize | ||
declare void @wombat(<4 x float>) | ||
|