aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorAditya Nandakumar <aditya_nandakumar@apple.com>2019-12-03 10:40:03 -0800
committerAditya Nandakumar <aditya_nandakumar@apple.com>2019-12-03 10:41:10 -0800
commit6da7dbb806dce9fbc05416482a5b895efdea96b0 (patch)
treefb4c8d1f35cd60b7424e6eab9643aab2e4c65bc7 /llvm/utils/FileCheck/FileCheck.cpp
parent444ac34182d562db2cb3b7d93d0d63acca1a6c9a (diff)
downloadllvm-6da7dbb806dce9fbc05416482a5b895efdea96b0.zip
llvm-6da7dbb806dce9fbc05416482a5b895efdea96b0.tar.gz
llvm-6da7dbb806dce9fbc05416482a5b895efdea96b0.tar.bz2
[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.
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions