[PATCH] D156972: [DAG] Fix crash in replaceStoreOfInsertLoad
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 8 05:37:54 PDT 2023
arsenm accepted this revision.
arsenm added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:20526
+ if(Idx.getValueType().getSizeInBits() < PtrVT.getSizeInBits())
+ Idx = DAG.getZExtOrTrunc(Idx, DL, PtrVT);
----------------
Can drop the check, getZExtOrTrunc does it for you
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156972/new/
https://reviews.llvm.org/D156972
More information about the llvm-commits
mailing list