[PATCH] Allow ScalarEvolution to catch more min/max cases
Johannes Doerfert
doerfert at cs.uni-saarland.de
Mon Feb 2 05:17:31 PST 2015
Hi sunfish, atrick, bkramer,
For the test case attached different types are used in the ICmpInst
and SelectInst that represent the min/max expressions. However, if the
ICmpInst type is smaller a comparison with the sign/zero extended
operands would have yielded the same result. This situation might arise after
the instruction combination pass was applied.
http://reviews.llvm.org/D7338
Files:
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/min-max-exprs.ll
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7338.19144.patch
Type: text/x-patch
Size: 8131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150202/afe06933/attachment.bin>
More information about the llvm-commits
mailing list