llvm.guard(false) always bails out of the current compilation unit, so
we can prune any control flow following it.
Note: earlier I had submitted an incorrect version of this change as
D19188.
Differential D19245
[SimplifyCFG] Fold `llvm.guard(false)` to unreachable sanjoy on Apr 18 2016, 3:54 PM. Authored by
Details llvm.guard(false) always bails out of the current compilation unit, so Note: earlier I had submitted an incorrect version of this change as
Diff Detail Event TimelineComment Actions
Comment Actions LGTM w/remaining comments from David and my own addressed.
|
You should respect UseLLVMTrap here.