Currently, sinkUnusedInvariants does not set Changed flag even if it makes
changes in the IR. There is no clear evidence that it can cause a crash, but it
looks highly suspicious and likely invalid.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I see that IndVarsSimplify uses class field Changed. You propose to use Changed as return value. I just want to see the same approach through the whole IndVars...
Do you plan to modify other pieces to return Changed or may be it makes sense to re-use the class field approach here as well?
What do you think?
Comment Actions
I agree that having Changed as a field is bizzare. It makes a lot of confusion regarding the proper place where it should be set. I plan to rework it to make it a local variable, but I haven't look into how easy it's gonna be.