This is a (hopefullly) reasonable attempt to fix PR23380
https://llvm.org/bugs/show_bug.cgi?id=23380
Details
Details
- Reviewers
nadav dexonsmith
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Would it be better to make emitOptimizationRemarkMissed() resilient to a null DebugLoc? It seems strange to require debug info to print pass remarks.
- dpnes
Comment Actions
emitLoopVectorizeWarning() should actually be made resilient because that's where the crash happen.
I'll take a look at this further tomorrow.
Comment Actions
Coincidentally, I just submitted a patch to do this in clang:
Geoff Berry
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux
Foundation Collaborative Project
Comment Actions
D9499 landed and fixed the problem. After discussion with dexonsmith on IRC we agreed it's better to emit the remark all the time, hence this review can be abandoned.