diff options
author | Craig Topper <craig.topper@intel.com> | 2020-06-08 11:26:11 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2020-06-08 11:46:56 -0700 |
commit | 2328cab16ccd8f17fee782c29fb844662c089fbb (patch) | |
tree | c6999269b860c58bd7fab4735db51b245c335131 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f3d8a9397003b6645f19a4dd11cc1165ce75bd7d (diff) | |
download | llvm-2328cab16ccd8f17fee782c29fb844662c089fbb.zip llvm-2328cab16ccd8f17fee782c29fb844662c089fbb.tar.gz llvm-2328cab16ccd8f17fee782c29fb844662c089fbb.tar.bz2 |
[X86] Prevent LowerSELECT from causing suboptimal codegen for __builtin_ffs(X) - 1.
LowerSELECT sees the CMP with 0 and wants to use a trick with SUB
and SBB. But we can use the flags from the BSF/TZCNT.
Fixes PR46203.
Differential Revision: https://reviews.llvm.org/D81312
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions