[PATCH] D111703: [ARM] __cxa_end_cleanup should be called instead of _UnwindResume.

Logan Chien via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 13 19:39:03 PDT 2021


logan added inline comments.


================
Comment at: llvm/lib/CodeGen/DwarfEHPrepare.cpp:239
+      RewindName = TLI.getLibcallName(RTLIB::UNWIND_RESUME);
     RewindFunction = F.getParent()->getOrInsertFunction(RewindName, FTy);
   }
----------------
`__cxa_end_cleanup` does not expect the exception object.  Maybe we can exploit that to eliminate unnecessary instructions that set up r0?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111703/new/

https://reviews.llvm.org/D111703



More information about the llvm-commits mailing list