diff options
author | James Molloy <james.molloy@arm.com> | 2015-05-15 16:04:50 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2015-05-15 16:04:50 +0000 |
commit | 270ef8c28b427bbd2be76b06ff53862bf8575146 (patch) | |
tree | d96e3ba2e2e3a1fa0ae5b8759666873e78cf6225 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | eeb2fa98774159100263f927c2b44b674ffd9e96 (diff) | |
download | llvm-270ef8c28b427bbd2be76b06ff53862bf8575146.zip llvm-270ef8c28b427bbd2be76b06ff53862bf8575146.tar.gz llvm-270ef8c28b427bbd2be76b06ff53862bf8575146.tar.bz2 |
Allow min/max detection to see through casts.
This teaches the min/max idiom detector in ValueTracking to see through
casts such as SExt/ZExt/Trunc. SCEV can already do this, so we're bringing
non-SCEV analyses up to the same level.
The returned LHS/RHS will not match the type of the original SelectInst
any more, so a CastOp is returned too to inform the caller how to
convert to the SelectInst's type.
No in-tree users yet; this will be used by InstCombine in a followup.
llvm-svn: 237452
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions