SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [GlobalISel]: Allow targets to override how to widen constants during (details)
Commit 6da7dbb806dce9fbc05416482a5b895efdea96b0 by aditya_nandakumar
[GlobalISel]: Allow targets to override how to widen constants during
legalization
https://reviews.llvm.org/D70922
This adds a hook to allow targets to define exactly what extension
operation should be performed for widening constants. This handles cases
like widening i1 true which would end up becoming -1 which affects code
quality during combines. Additionally, in order to stay consistent with
how DAG is promoting constants, we now signextend for byte sized types
and zero extend otherwise (by default). Targets can of course override
this if necessary.
The file was modifiedllvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp
The file was modifiedllvm/test/CodeGen/X86/GlobalISel/ashr-scalar.ll
The file was modifiedllvm/include/llvm/Support/LowLevelTypeImpl.h
The file was modifiedllvm/test/CodeGen/X86/GlobalISel/legalize-constant.mir
The file was modifiedllvm/test/CodeGen/Mips/GlobalISel/llvm-ir/fcmp.ll
The file was modifiedllvm/test/CodeGen/Mips/GlobalISel/llvm-ir/constants.ll
The file was modifiedllvm/test/CodeGen/Mips/GlobalISel/legalizer/constants.mir
The file was modifiedllvm/test/CodeGen/ARM/GlobalISel/arm-legalize-consts.mir
The file was modifiedllvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
The file was modifiedllvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
The file was modifiedllvm/test/CodeGen/X86/GlobalISel/shl-scalar.ll
The file was modifiedllvm/test/CodeGen/Mips/GlobalISel/legalizer/select.mir
The file was modifiedllvm/test/CodeGen/ARM/GlobalISel/arm-legalize-fp.mir
The file was modifiedllvm/test/CodeGen/X86/GlobalISel/lshr-scalar.ll
The file was modifiedllvm/test/CodeGen/Mips/GlobalISel/llvm-ir/select.ll