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
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Yep, that's a standard problem for "constants", and a standard fix.
IMO ConstantExprs should go away.