While D72944 also fixes https://bugs.llvm.org/show_bug.cgi?id=44541, it does so in a more roundabout manner and there might be other loopholes to trigger the same issue. This is a more direct fix that does not recognize min/max in SPF if it is based on a non-canonical sub X, 0 instruction.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Is there a way to solve this in InstCombine instead? We don't really want to cripple ValueTracking only because InstCombine has a problem with (the correct) analysis; ValueTracking can be used by other passes.