File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 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
3834static Type *mergeInferredTypes (Type *A, Type *B) {
3935 if (!A)
4036 return B;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments