Add a common -trap-unreachable option, similar to the target
specific hexagon equivalent, which has been replaced. This
turns unreachable instructions into traps, which is useful for
debugging.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Would it be possible to enable this for all targets, not just ARM? Maybe this could be put into the constructor of LLVMTargetMachine?
Comment Actions
Sounds like a good idea. Now for all targets. I have not removed the hexagon option, in case it was being used by them.
Comment Actions
You can remove the Hexagon-specific option. It's used in one testcase, you can replace it with the one you introduced.