The register stackifier currently checks for intervening stores (and
loads that may alias them) but doesn't account for the fact that the
instruction being moved may affect intervening loads.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Good catch. The isSafeToMove API is pretty confusing; this is what comes of trying to be clever with it. I think we'll eventually want to revisit this code and do something other than isSafeToMove, but this change looks ok for now.