diff options
author | Craig Topper <craig.topper@intel.com> | 2019-06-05 01:00:34 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-06-05 01:00:34 +0000 |
commit | 78fdce25a1ba0694b8d0ce24d2bc99f19ef7c184 (patch) | |
tree | 275e503b72384915b52a62b279bc2af650b191fd /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 8ca545576476b26cd4097b8ad23049adaf084d9c (diff) | |
download | llvm-78fdce25a1ba0694b8d0ce24d2bc99f19ef7c184.zip llvm-78fdce25a1ba0694b8d0ce24d2bc99f19ef7c184.tar.gz llvm-78fdce25a1ba0694b8d0ce24d2bc99f19ef7c184.tar.bz2 |
[X86] Cleanup convertIntLogicToFPLogic a little. NFCI
-Use early returns to reduce indentation
-Replace multipe ifs with a switch.
-Replace an assert with an llvm_unreachable default in the switch.
-Check that the FP type we're going to use for the
X86ISD::FAND/FOR/FXOR is legal rather than checking that the
integer type matches the width of a legal scalar fp type. This all
runs after legalization so it shouldn't really matter, but making
sure we're using a valid type in the X86ISD node is really
whats important.
llvm-svn: 362565
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions