decompose() currently returns a mix of {} and 0 + 1*V on failure. I don't really follow why we use one over the other in some cases. It seems like it would be better to make decompose() infallible and always return 0 + 1*V is we can't decompose the value further.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, thanks!
IIRC the main reason was that {} originally was more compact. With respect to correctness, always returning 0 + V is fine and in combination with the constructors from D137848 the code will end up still compact.