aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2021-06-29 10:38:47 -0700
committerCraig Topper <craig.topper@sifive.com>2021-06-29 11:00:11 -0700
commit913229983633cd4c19b9e5534018f9a42e274b30 (patch)
treeef314dad79ea854f86f904c930439601e36efce2 /llvm/lib/CodeGen/MachineFunction.cpp
parent71be4db05bbdcc8a9bbe01f54cf273b530327ec7 (diff)
downloadllvm-913229983633cd4c19b9e5534018f9a42e274b30.zip
llvm-913229983633cd4c19b9e5534018f9a42e274b30.tar.gz
llvm-913229983633cd4c19b9e5534018f9a42e274b30.tar.bz2
[LegalizeTypes][VE] Don't Expand BITREVERSE/BSWAP during type legalization promotion if they will be promoted for NVT in op legalization.
We were trying to expand these if they were going to be expanded in op legalization so that we generated the minimum number of operations. We failed to take into account that NVT could be promoted to another legal type in op legalization. Hoping this fixes the issue on the VE target reported as a follow up to D96681. The check line changes were taken from before 1e46b6f4012399a2fef5fbbb4ed06fc919835414 so this patch does appear to improve some cases that had previously regressed.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions