[PATCH] D110461: Add salvageDebugInfo support for ptrtoint / inttoptr with trunc/ext behavior
Min-Yih Hsu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 24 21:14:57 PDT 2021
myhsu added a comment.
This patch seems reasonable to me
================
Comment at: llvm/lib/Transforms/Utils/Local.cpp:1924
+ unsigned FromTypeBitSize = FromType->getScalarSizeInBits();
unsigned ToTypeBitSize = Type->getScalarSizeInBits();
----------------
(nit) Should we bail out if FromTypeBitSize and ToTypeBitSize are the same? Usually these two values are different for sext/zext/trunc but for inttoptr/ptrtoint it's pretty common that they have the same value.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110461/new/
https://reviews.llvm.org/D110461
More information about the llvm-commits
mailing list