This is an archive of the discontinued LLVM Phabricator instance.

[FPEnv] Allow strict SETCC falling back if strict FP is not supported.
Needs ReviewPublic

Authored by pengfei on Oct 27 2020, 11:29 PM.

Diff Detail

Event Timeline

pengfei created this revision.Oct 27 2020, 11:29 PM
pengfei requested review of this revision.Oct 27 2020, 11:29 PM
craig.topper added inline comments.Oct 27 2020, 11:34 PM
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
3772

This assert doesn't do anything. The string is a non-null const char* so the assert will aways pass.

pengfei marked an inline comment as done.Oct 27 2020, 11:41 PM
pengfei added inline comments.
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
3772

Thanks Craig.

pengfei updated this revision to Diff 301188.Oct 27 2020, 11:42 PM
pengfei marked an inline comment as done.

Address review comment.

pengfei updated this revision to Diff 301193.Oct 28 2020, 12:46 AM

Change to use the common falling back code in line 4964.

Gently ping.
Although Melanie had a fix D90316 for the initial problem, I think this patch still has value for target during strict FP enabling.