File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -103,16 +103,6 @@ Value *stripCasts(Value *V) {
103
103
return V;
104
104
}
105
105
106
- const Value *getSingleUserSkipCasts (const Value *V) {
107
- while (isCast (V)) {
108
- if (V->getNumUses () != 1 ) {
109
- return nullptr ;
110
- }
111
- V = *(V->user_begin ());
112
- }
113
- return V;
114
- }
115
-
116
106
void collectUsesLookThroughCasts (Value *V, SmallPtrSetImpl<const Use *> &Uses) {
117
107
for (Use &U : V->uses ()) {
118
108
Value *VV = U.getUser ();
@@ -385,7 +375,6 @@ bool processInvokeSimdCall(CallInst *InvokeSimd,
385
375
auto *Helper = cast<Function>(H);
386
376
// Mark helper as explicit SIMD function. Some BEs need this info.
387
377
{
388
- LLVMContext &C = Helper->getContext ();
389
378
markFunctionAsESIMD (Helper);
390
379
// Fixup helper's linkage, which is linkonce_odr after the FE. It is dropped
391
380
// from the ESIMD module after global DCE in post-link if not fixed up.
Original file line number Diff line number Diff line change @@ -696,9 +696,9 @@ processInputModule(std::unique_ptr<Module> M) {
696
696
// Violation of this invariant is user error and must've been reported.
697
697
// However, if split mode is "auto", then entry point filtering is still
698
698
// performed.
699
- assert (!IROutputOnly || (SplitMode == module_split::SPLIT_NONE) ||
700
- (SplitMode == module_split::SPLIT_AUTO) &&
701
- " invalid split mode for IR-only output" );
699
+ assert (( !IROutputOnly || (SplitMode == module_split::SPLIT_NONE) ||
700
+ (SplitMode == module_split::SPLIT_AUTO) ) &&
701
+ " invalid split mode for IR-only output" );
702
702
703
703
// Top-level per-kernel/per-source splitter. SYCL/ESIMD splitting is applied
704
704
// to modules resulting from all other kinds of splitting.
@@ -780,8 +780,8 @@ processInputModule(std::unique_ptr<Module> M) {
780
780
if (!SplitEsimd && (MMs.size () > 1 )) {
781
781
// SYCL/ESIMD splitting is not requested, link back into single module.
782
782
assert (MMs.size () == 2 );
783
- assert (MMs[0 ].isESIMD () && MMs[1 ].isSYCL () ||
784
- MMs[1 ].isESIMD () && MMs[0 ].isSYCL ());
783
+ assert (( MMs[0 ].isESIMD () && MMs[1 ].isSYCL () ) ||
784
+ ( MMs[1 ].isESIMD () && MMs[0 ].isSYCL () ));
785
785
int ESIMDInd = MMs[0 ].isESIMD () ? 0 : 1 ;
786
786
int SYCLInd = MMs[0 ].isESIMD () ? 1 : 0 ;
787
787
// ... but before that, make sure no link conflicts will occur.
You can’t perform that action at this time.
0 commit comments