[llvm] Adjust bit cast instruction filter for DXIL Prepare pass (PR #142678)
Joshua Batista via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 12:51:57 PDT 2025
================
@@ -148,9 +148,47 @@ class DXILPrepareModule : public ModulePass {
Type *Ty) {
// Omit bitcasts if the incoming value matches the instruction type.
auto It = PointerTypes.find(Operand);
- if (It != PointerTypes.end())
- if (cast<TypedPointerType>(It->second)->getElementType() == Ty)
+ if (It != PointerTypes.end()) {
+ auto OpTy = cast<TypedPointerType>(It->second)->getElementType();
----------------
bob80905 wrote:
It compiles and runs well both ways, auto figures it out. Though I do typically see a * after auto assignments, it may be a style thing.
I'll change it.
https://github.com/llvm/llvm-project/pull/142678
More information about the llvm-commits
mailing list