diff options
author | Florian Hahn <flo@fhahn.com> | 2024-01-02 22:05:57 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2024-01-02 22:05:57 +0000 |
commit | 3c127e83c07c3791e86413c22a414a030d4302e3 (patch) | |
tree | 4d0a208dfa51d45dba331eb8aa3c739a1c67a522 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 71bcef0b0bf55a96f85b2f323b0beb13ad8e2caa (diff) | |
download | llvm-3c127e83c07c3791e86413c22a414a030d4302e3.zip llvm-3c127e83c07c3791e86413c22a414a030d4302e3.tar.gz llvm-3c127e83c07c3791e86413c22a414a030d4302e3.tar.bz2 |
[ConstraintElim] Replace NUWSub decomp with recursive decomp of ops.
The current patterns for NUWSub decompositions do not handle negative
constants correctly at the moment (causing #76713).
Replace the incorrect pattern by more general code that recursively
decomposes the operands and then combines the results. This is already
done in most other places that handle operators like add/mul.
This means we fall back to the general constant handling code (fixes the
mis-compile) while also being able to support reasoning about
decomposable expressions in the SUB operands.
Fixes https://github.com/llvm/llvm-project/issues/76713.
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions