[PATCH] D64726: AMDGPU/GlobalISel: Fix not constraining result reg of copies to VCC

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 06:14:47 PDT 2019


arsenm added a comment.

In D64726#1587233 <https://reviews.llvm.org/D64726#1587233>, @nhaehnle wrote:

> This seems incorrect, doesn't it? The truncation disappeared.... (e.g., what if $sgpr0 is 0x10)


My current understanding of G_TRUNC is it's a no-op, and supposed to always be legal. This is supposed to be the legalized MIR, so theoretically this was generated by something that knew the original argument was zeroext from i1


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64726/new/

https://reviews.llvm.org/D64726





More information about the llvm-commits mailing list