Partial progress towards replacing CreateElementBitCast, as it no
longer does what its name suggests. Either replace its uses with
Address::withElementType(), or remove them if no longer needed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang/lib/CodeGen/CGNonTrivialStruct.cpp | ||
|---|---|---|
| 368–369 | Only BC.getPointer() is used, so you can omit the withElementType. | |
| clang/lib/CodeGen/MicrosoftCXXABI.cpp | ||
| 3134–3135 | ||
| 3135–3138 | Can drop this bitcast while here. | |
| clang/lib/CodeGen/Targets/AArch64.cpp | ||
| 522 | Can inline this withElementType call into Address ctor. | |
| clang/lib/CodeGen/CGAtomic.cpp | ||
|---|---|---|
| 1474 | as it no longer emits anything. | |
Comment Actions
- Rebase onto latest main
- Apply feedback from reviews
- Rename AtomicInfo::emitCastToAtomicIntPointer to AtomicInfo::castToAtomicIntPointer
| clang/lib/CodeGen/Targets/AArch64.cpp | ||
|---|---|---|
| 521–522 | ||
as it no longer emits anything.