It was removed back in 2013 (f63dfbb) by Matt Arsenault but then
reverted since DragonEgg used it, but that project is no longer
maintained.
Can this be removed now?
Paths
| Differential D92571
[IR] Remove CastInst::isCastable since it is not used ClosedPublic Authored by c-rhodes on Dec 3 2020, 4:37 AM.
Details
Summary It was removed back in 2013 (f63dfbb) by Matt Arsenault but then Can this be removed now?
Diff Detail Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 3 2020, 4:37 AM
ldionne added inline comments. This revision is now accepted and ready to land.Dec 3 2020, 11:53 AM Comment Actions LGTM too if you drop the libcxxabi change. If there's an out-of-tree user that needs this we can revert again if it makes sense to (in which case, it'd be better to change getCastOpcode to return an Optional<Instruction::CastOps>, so we're not having to keep two functions in sync like this...). Comment Actions
SGTM, I'll land it early next week in-case of any fallout, thanks for reviewing.
Closed by commit rG2cfbdaf60104: [IR] Remove CastInst::isCastable since it is not used (authored by c-rhodes). · Explain WhyDec 8 2020, 2:32 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 309227 libcxxabi/test/test_demangle.pass.cpp
llvm/include/llvm/IR/InstrTypes.h
llvm/lib/IR/Instructions.cpp
llvm/unittests/IR/InstructionsTest.cpp
|
I don't understand why this is being removed. Is the demangler testcase no longer valid?