Skip to content

Commit c638161

Browse files
authored
[clang][RISCVVEmitter] Remove no-op ptr-to-ptr bitcast (NFC) (llvm#74179)
Remove ptr-to-ptr bitcast which was added back in 939352b . With opaque pointers, the bitcast is now redundant. Opaque ptr cleanup effort.
1 parent a7627f7 commit c638161

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

clang/utils/TableGen/RISCVVEmitter.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,10 @@ void emitCodeGenSwitchBody(const RVVIntrinsic *RVVI, raw_ostream &OS) {
180180
return;
181181
}
182182

183-
// Cast pointer operand of vector load intrinsic.
184183
for (const auto &I : enumerate(RVVI->getInputTypes())) {
185184
if (I.value()->isPointer()) {
186185
assert(RVVI->getIntrinsicTypes().front() == -1 &&
187186
"RVVI should be vector load intrinsic.");
188-
OS << " Ops[" << I.index() << "] = Builder.CreateBitCast(Ops[";
189-
OS << I.index() << "], ResultType->getPointerTo());\n";
190187
}
191188
}
192189

0 commit comments

Comments
 (0)