[all-commits] [llvm/llvm-project] 480966: [GlobalISel] Make sure G_ASSERT_ZEXT's src ends up...
Jessica Paquette via All-commits
all-commits at lists.llvm.org
Mon Feb 1 09:47:14 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4809663334ab84fc0e3f4ed11477d6873e642824
https://github.com/llvm/llvm-project/commit/4809663334ab84fc0e3f4ed11477d6873e642824
Author: Jessica Paquette <jpaquette at apple.com>
Date: 2021-02-01 (Mon, 01 Feb 2021)
Changed paths:
M llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp
M llvm/test/CodeGen/AArch64/GlobalISel/select-hint.mir
Log Message:
-----------
[GlobalISel] Make sure G_ASSERT_ZEXT's src ends up with the same rc as dst
When replacing the dst reg with the src reg, we need to make sure that we
propagate the dst reg's register class through to the src.
Otherwise, we aren't meeting the requirements for G_ASSERT_ZEXT, and so the
verifier will fail.
Differential Revision: https://reviews.llvm.org/D95708
More information about the All-commits
mailing list