Skip to content
Commit 7659157f authored by Aaron Watry's avatar Aaron Watry
Browse files

Add hadd builtin



(x + y) >> 1 gets changed to:
(x>>1) + (y>>1) + (x&y&1)

Saves us having to do any llvm assembly and overflow checking in the addition.

Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
llvm-svn: 188476
parent d18fcc7a
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