Skip to content

Commit 0bb23fd

Browse files
committed
clean up
1 parent d68261f commit 0bb23fd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

llvm/lib/Target/DirectX/DXILRefineTypes.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "DXILRefineTypes.h"
1010
#include "llvm/IR/DerivedTypes.h"
11-
#include "llvm/IR/GlobalVariable.h"
1211
#include "llvm/IR/IRBuilder.h"
1312
#include "llvm/IR/Instructions.h"
1413
#include "llvm/IR/Intrinsics.h"
@@ -32,9 +31,6 @@ static Type *inferType(Value *Operand) {
3231
return nullptr;
3332
}
3433

35-
// Attempt to merge two inferred types.
36-
//
37-
// Returns nullptr, if an inferred can't be concluded
3834
static Type *mergeInferredTypes(Type *A, Type *B) {
3935
if (!A)
4036
return B;

llvm/test/CodeGen/DirectX/refine-access-load-store.ll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ declare void @external_barrier(ptr)
122122

123123
;--- folded.ll
124124

125+
; This tests that when there is no function call to prevent folding, the type
126+
; will still successfully be replaced.
127+
125128
; FOLDED-LABEL: @test_folded(
126129
; FOLDED: %[[#TO:]] = load %struct.PromotedStruct, ptr %get_access
127130
; FOLDED: store %struct.PromotedStruct %[[#TO]], ptr %set_access

0 commit comments

Comments
 (0)