sanjoy added a comment. This looks wrong -- shifts should always be safe to speculate. I wasn't following PR30708 closely, but can you describe why you think shift speculation is the root cause for PR30708? https://reviews.llvm.org/D25847