InvokeInst should be treated like CallInst and
assigned a separate discriminator. This is particularly
import when an Invoke is converted to a Call
during compilation and so can invalidate sample profile
data collected wtih different link time optimizations
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 26554 Build 26553: arc lint + arc unit
Event Timeline
Comment Actions
LGTM.
lib/Transforms/Utils/AddDiscriminators.cpp | ||
---|---|---|
239–244 | nit: Can we merge it to? if ((!isa<CallInst>(I) && !isa<InvokeInst>(I)) || isa<IntrinsicInst>(I)) continue; |
nit: Can we merge it to?