[llvm] [GlobalIsel] Combine freeze (PR #93239)
Dhruv Chawla via llvm-commits
llvm-commits at lists.llvm.org
Sat May 25 08:21:01 PDT 2024
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/93239 at github.com>
================
@@ -1745,18 +1778,55 @@ static bool canCreateUndefOrPoison(Register Reg, const MachineRegisterInfo &MRI,
UndefPoisonKind Kind) {
MachineInstr *RegDef = MRI.getVRegDef(Reg);
- if (auto *GMI = dyn_cast<GenericMachineInstr>(RegDef)) {
- if (ConsiderFlagsAndMetadata && includesPoison(Kind) &&
- GMI->hasPoisonGeneratingFlags())
- return true;
- } else {
- // Conservatively return true.
- return true;
- }
----------------
dc03-work wrote:
Are regular `MachineInstr`s not capable of generating undef or poison?
https://github.com/llvm/llvm-project/pull/93239
More information about the llvm-commits
mailing list