Skip to content
Commit 698661c7 authored by Chris Lattner's avatar Chris Lattner
Browse files

add uadd_ov/usub_ov to apint, consolidate constant folding

logic to use the new APInt methods.  Among other things this
implements rdar://8501501 - llvm.smul.with.overflow.i32 should constant fold

which comes from "clang -ftrapv", originally brought to my attention from PR8221.

llvm-svn: 116457
parent edf5e640
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment