summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegisterClassInfo.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-08-01 18:38:46 +0000
committerCraig Topper <craig.topper@intel.com>2018-08-01 18:38:46 +0000
commitc985d42903f31f7c8b1e4e68cdceebe61a12fcea (patch)
treed1039f5a3bd77e78419de53a5c42c694ad2c0dc5 /llvm/lib/CodeGen/RegisterClassInfo.cpp
parentffb8eb30ff85d5d2ffbfbebc36b0f2002dc3aa99 (diff)
downloadbcm5719-llvm-c985d42903f31f7c8b1e4e68cdceebe61a12fcea.tar.gz
bcm5719-llvm-c985d42903f31f7c8b1e4e68cdceebe61a12fcea.zip
[X86] Canonicalize the pattern for __builtin_ffs in a similar way to '__builtin_ffs + 5'
We now emit a move of -1 before the cmov and do the addition after the cmov just like the case with an extra addition. This may be slightly worse for code size, but is more consistent with other compilers. And we might be able to hoist the mov -1 outside of loops. llvm-svn: 338613
Diffstat (limited to 'llvm/lib/CodeGen/RegisterClassInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud