Diff Detail
Event Timeline
lib/Analysis/ValueTracking.cpp | ||
---|---|---|
2921–2923 | Comment is still here. Also, we should have tests for sitofp/uitofp. |
lib/Analysis/ValueTracking.cpp | ||
---|---|---|
2921–2923 | The tests are there for sitofp/uitofp, just apparently somehow the fcmp ord was already optimizing away before |
lib/Analysis/ValueTracking.cpp | ||
---|---|---|
2921–2923 | It looks like foldFCmpIntToFPConst specifically handles the case of these with an fcmp ord |
LGTM
lib/Analysis/ValueTracking.cpp | ||
---|---|---|
2921–2923 | Ah, I see. Sorry, I didn't see the existing tests. We can test this patch more directly and improve efficiency with a small edit in instsimplify, but that can be a follow-up. Please do remove or edit the TODO comment here if there are planned improvements. |
Remove stale comment.