Skip to content
Commit bc5c524b authored by Pete Cooper's avatar Pete Cooper
Browse files

Added instcombine pattern to spot comparing -val or val against 0.

(val != 0) == (-val != 0) so "abs(val) != 0" becomes "val != 0"

Fixes <rdar://problem/10482509>

llvm-svn: 145563
parent b1a02922
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