OSDN Git Service

[GlobalISel]: Create VREGs for ConstantInt args
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Wed, 22 Mar 2017 01:16:39 +0000 (01:16 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Wed, 22 Mar 2017 01:16:39 +0000 (01:16 +0000)
commit1b722a40ce1652300fd9f64ca7a43e14c3367c27
treee6cd32d84377b92744e0f0038741351aaf6cb18c
parenta284ce24c9d86a4f39bf2aaf69cea13b3950e37f
[GlobalISel]: Create VREGs for ConstantInt args

This patch changes the behavior of IRTranslating intrinsics where we
now create VREG + G_CONSTANT for ConstantInt values. We already do this
for FloatingPoint values. This makes it easier for the backends to
select code and it won't have to de-duplicate creation+selection of
constants.

Reviewed by: ab

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298473 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/IRTranslator.cpp
test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll