1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00
Quentin Colombet 9785bf9323 [GlobalISel][Utils] Add a getConstantVRegVal variant that looks through instrs
getConstantVRegVal used to only look for G_CONSTANT when looking at
unboxing the value of a vreg. However, constants are sometimes not
directly used and are hidden behind trunc, s|zext or copy chain of
computation.

In particular this may be introduced by the legalization process that
doesn't want to simplify these patterns because it can lead to infine
loop when legalizing a constant.

To circumvent that problem, add a new variant of getConstantVRegVal,
named getConstantVRegValWithLookThrough, that allow to look through
extensions.

Differential Revision: https://reviews.llvm.org/D59227

llvm-svn: 356116
2019-03-14 01:37:13 +00:00
..
2019-03-13 19:07:59 +00:00
2018-06-29 16:37:16 +00:00
2018-07-23 23:19:53 +00:00
2019-01-28 14:59:30 +00:00
2017-12-11 11:21:40 +00:00
2017-06-06 15:33:01 +00:00
2017-12-11 11:21:40 +00:00
2017-03-09 11:19:48 +00:00
2017-03-09 11:19:48 +00:00