[PATCH] D132981: [MachineCSE] Use TargetInstrInfo::isAsCheapAsAMove in isPRECandidate.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 15:39:55 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG77dbc5200bb5: [MachineCSE] Use TargetInstrInfo::isAsCheapAsAMove in isPRECandidate. (authored by craig.topper).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132981

Files:
  llvm/lib/CodeGen/MachineCSE.cpp


Index: llvm/lib/CodeGen/MachineCSE.cpp
===================================================================
--- llvm/lib/CodeGen/MachineCSE.cpp
+++ llvm/lib/CodeGen/MachineCSE.cpp
@@ -789,7 +789,7 @@
   if (!isCSECandidate(MI) ||
       MI->isNotDuplicable() ||
       MI->mayLoad() ||
-      MI->isAsCheapAsAMove() ||
+      TII->isAsCheapAsAMove(*MI) ||
       MI->getNumDefs() != 1 ||
       MI->getNumExplicitDefs() != 1)
     return false;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132981.457117.patch
Type: text/x-patch
Size: 444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220831/38d9b6ae/attachment.bin>


More information about the llvm-commits mailing list