aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2015-05-15 16:04:50 +0000
committerJames Molloy <james.molloy@arm.com>2015-05-15 16:04:50 +0000
commit270ef8c28b427bbd2be76b06ff53862bf8575146 (patch)
treed96e3ba2e2e3a1fa0ae5b8759666873e78cf6225 /llvm/lib/IR/Module.cpp
parenteeb2fa98774159100263f927c2b44b674ffd9e96 (diff)
downloadllvm-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 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions