Debug info should *not* affect code generation. This patch properly handles debug info to make sure the generated code are the same with or without debug info.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 538 Build 538: arc lint + arc unit
Event Timeline
lib/Transforms/Utils/SimplifyCFG.cpp | ||
---|---|---|
1493 | You shouldn't have to check this here, because canSinkLastInstruction should have checked it. Sidenote: I think you need to make sure it's checked in canSinkLastInstruction :) |
lib/Transforms/Utils/SimplifyCFG.cpp | ||
---|---|---|
1493 | But canSinkLastInstruction only skips the DbgInfoIntrinsic. If we don't have the logic here, I0 may end up being a DbgInfoIntrinsic? |
Comment Actions
Sorry this took so long. LGTM.
lib/Transforms/Utils/SimplifyCFG.cpp | ||
---|---|---|
1493 | Ah yes, you're right. |
You shouldn't have to check this here, because canSinkLastInstruction should have checked it.
Sidenote: I think you need to make sure it's checked in canSinkLastInstruction :)