diff options
author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2024-12-12 10:30:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 10:30:37 +0800 |
commit | a67bd94fdafce716b42e0cb5409ee451b20f1749 (patch) | |
tree | 65fd2e56ad7b0cd8af93ab4dcfaf66128dda431d /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 8420602bc21098a737708f35caf96e696f948503 (diff) | |
download | llvm-a67bd94fdafce716b42e0cb5409ee451b20f1749.zip llvm-a67bd94fdafce716b42e0cb5409ee451b20f1749.tar.gz llvm-a67bd94fdafce716b42e0cb5409ee451b20f1749.tar.bz2 |
[ValueTracking] Add missing operand checks in `computeKnownFPClassFromCond` (#119579)
After https://github.com/llvm/llvm-project/pull/118257, we may call
`computeKnownFPClassFromCond` with unrelated conditions. Then
miscompilations may occur due to a lack of operand checks.
This bug was introduced by
https://github.com/llvm/llvm-project/commit/d2404ea6ced5fce9442260bde08a02d607fdd50d
and https://github.com/llvm/llvm-project/pull/80740. However, the
miscompilation couldn't have happened before
https://github.com/llvm/llvm-project/pull/118257, because we only added
related conditions to `DomConditionCache/AssumptionCache`.
Fix the miscompilation reported in
https://github.com/llvm/llvm-project/pull/118257#issuecomment-2536182166.
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions