summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-02 16:19:38 +0000
committerDan Gohman <gohman@apple.com>2009-08-02 16:19:38 +0000
commit3f323847bc6a270312c615309c3c3f8c16ddbed9 (patch)
tree0ef9ae87553f4a9f326c4801e8480fa0fda7522f /clang/lib/CodeGen/CodeGenModule.cpp
parent757eee8a273b141a57109587b67a8d6cb3e51fc2 (diff)
downloadbcm5719-llvm-3f323847bc6a270312c615309c3c3f8c16ddbed9.tar.gz
bcm5719-llvm-3f323847bc6a270312c615309c3c3f8c16ddbed9.zip
Avoid forming a SELECT_CC in a type that the target doesn't
support. This isn't immediately interesting, because Legalize ends up lowering SELECT_CC if the target doesn't support it, but this simplifies the process. Also, if the SELECT_CC would be expanded in Legalize, it can potentially end up with two copies of the condition expression. By leaving it as SELECT+SETCC, the SELECT can be expanded into two SELECTs that use a single SETCC. The two comparisons are usually CSE'd, but depending on when various expressions get legalized, the comparison expression could involve calls to library functions, such that the comparison expression may not be able to be CSE'd. This will be needed by a future patch. llvm-svn: 77896
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud