Instead of creating a new instruction and copying operands, we can
use setDesc to convert in place.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I'm not sure this is right. The problem is that the original instruction can have flags that indicate e.g. no-wrap or no-inf. Previously, those were implicitly dropped. After the transform, we have a different instruction semantic, are you sure those flags are always preserved? That seems like a non-obvious claim.