aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2020-05-27 11:12:05 -0700
committerCraig Topper <craig.topper@gmail.com>2020-05-27 12:01:18 -0700
commit8e7e6a8d6bae19c5a18e0d0daa0614272b85598c (patch)
tree8aa7b004479833d737745726bf1b087a6e346552 /llvm/lib/Support/CommandLine.cpp
parentfa3b587196dbc04e445257ae38e7906e5c0c4888 (diff)
downloadllvm-8e7e6a8d6bae19c5a18e0d0daa0614272b85598c.zip
llvm-8e7e6a8d6bae19c5a18e0d0daa0614272b85598c.tar.gz
llvm-8e7e6a8d6bae19c5a18e0d0daa0614272b85598c.tar.bz2
[X86] Restore selection of MULX on BMI2 targets.
Looking back over gcc and icc behavior it looks like icc does use mulx32 on 32-bit targets and mulx64 on 64-bit targets. It's also used when dividing i32 by constant on 32-bit targets and i64 by constant on 64-bit targets. gcc uses it multiplies producing a 64 bit result on 32-bit targets and 128-bit results on a 64-bit target. gcc does not appear to use it for division by constant. After this patch clang is closer to the icc behavior. This basically reverts d1c61861ddc94457b08a5a653d3908b7b38ebb22, but there were no strong feelings at the time. Fixes PR45518. Differential Revision: https://reviews.llvm.org/D80498
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions