[GlobalOpt] don't hoist constant expressions that can trap
We try to forward a stored-once-constant-value from one global access to another, but that's not safe if the constant value is an expression that can trap. The tests are reduced from the miscompile examples in: https://llvm.org/PR47578 Differential Revision: https://reviews.llvm.org/D108771
parent
15b2a8e7
Please register or sign in to comment