Fix regression in masked_store_blend for generic target.
In ee1fe3aa9f, the LLVM_VERSION define was updated to never
have the 'svn' suffix and the build was updated to handle LLVM
3.2. This file had a check for LLVM_3_1svn that was no longer
hitting.
This fixes some issues with unnecessary loads and stores
in generated C++ code for the generic targets.
This commit is contained in:
@@ -249,7 +249,16 @@ declare void @__masked_store_32(<WIDTH x i32>* nocapture, <WIDTH x i32>,
|
|||||||
declare void @__masked_store_64(<WIDTH x i64>* nocapture, <WIDTH x i64>,
|
declare void @__masked_store_64(<WIDTH x i64>* nocapture, <WIDTH x i64>,
|
||||||
<WIDTH x i1> %mask) nounwind
|
<WIDTH x i1> %mask) nounwind
|
||||||
|
|
||||||
ifelse(LLVM_VERSION, `LLVM_3_1svn',`
|
ifelse(LLVM_VERSION, `LLVM_3_0', `
|
||||||
|
declare void @__masked_store_blend_8(<WIDTH x i8>* nocapture, <WIDTH x i8>,
|
||||||
|
<WIDTH x i1>) nounwind
|
||||||
|
declare void @__masked_store_blend_16(<WIDTH x i16>* nocapture, <WIDTH x i16>,
|
||||||
|
<WIDTH x i1>) nounwind
|
||||||
|
declare void @__masked_store_blend_32(<WIDTH x i32>* nocapture, <WIDTH x i32>,
|
||||||
|
<WIDTH x i1>) nounwind
|
||||||
|
declare void @__masked_store_blend_64(<WIDTH x i64>* nocapture, <WIDTH x i64>,
|
||||||
|
<WIDTH x i1> %mask) nounwind
|
||||||
|
', `
|
||||||
define void @__masked_store_blend_8(<WIDTH x i8>* nocapture, <WIDTH x i8>,
|
define void @__masked_store_blend_8(<WIDTH x i8>* nocapture, <WIDTH x i8>,
|
||||||
<WIDTH x i1>) nounwind alwaysinline {
|
<WIDTH x i1>) nounwind alwaysinline {
|
||||||
%v = load <WIDTH x i8> * %0
|
%v = load <WIDTH x i8> * %0
|
||||||
@@ -281,15 +290,6 @@ define void @__masked_store_blend_64(<WIDTH x i64>* nocapture,
|
|||||||
store <WIDTH x i64> %v1, <WIDTH x i64> * %0
|
store <WIDTH x i64> %v1, <WIDTH x i64> * %0
|
||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
',`
|
|
||||||
declare void @__masked_store_blend_8(<WIDTH x i8>* nocapture, <WIDTH x i8>,
|
|
||||||
<WIDTH x i1>) nounwind
|
|
||||||
declare void @__masked_store_blend_16(<WIDTH x i16>* nocapture, <WIDTH x i16>,
|
|
||||||
<WIDTH x i1>) nounwind
|
|
||||||
declare void @__masked_store_blend_32(<WIDTH x i32>* nocapture, <WIDTH x i32>,
|
|
||||||
<WIDTH x i1>) nounwind
|
|
||||||
declare void @__masked_store_blend_64(<WIDTH x i64>* nocapture, <WIDTH x i64>,
|
|
||||||
<WIDTH x i1> %mask) nounwind
|
|
||||||
')
|
')
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|||||||
Reference in New Issue
Block a user