Previously we lowered it literally, to shifts and xors.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 2918 Build 2918: arc lint + arc unit
Event Timeline
llvm/lib/Target/NVPTX/NVPTXInstrInfo.td | ||
---|---|---|
490 | Perhaps add a link describing this way of calculating abs(). |
Perhaps add a link describing this way of calculating abs().
http://graphics.stanford.edu/~seander/bithacks.html#IntegerAbs