[PATCH] [InstCombine] Refactor out OptimizeOverflowCheck. NFCI.
Sanjoy Das
sanjoy at playingwithpointers.com
Tue Apr 7 20:25:24 PDT 2015
Hi majnemer, atrick,
This patch adds an enum `OverflowCheckFlavor` and a function
`OptimizeOverflowCheck`. This will allow InstCombine to optimize
overflow checks without directly introducing an intermediate call to the
`llvm.$op.with.overflow` instrinsics.
This specific change is a refactoring and does not intend to change
behavior.
http://reviews.llvm.org/D8888
Files:
lib/Transforms/InstCombine/InstCombineCalls.cpp
lib/Transforms/InstCombine/InstCombineCompares.cpp
lib/Transforms/InstCombine/InstCombineInternal.h
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8888.23390.patch
Type: text/x-patch
Size: 12778 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150408/486a2e24/attachment.bin>
More information about the llvm-commits
mailing list