[llvm] [LV] Remove common extends and selects in CSE (PR #147731)

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 10 05:41:08 PDT 2025


================
@@ -804,6 +804,10 @@ int FunctionComparator::cmpOperations(const Instruction *L,
         return Res;
     }
   }
+  if (const CastInst *Cast = dyn_cast<CastInst>(L)) {
----------------
SamTebbs33 wrote:

I think you're right about this being caught by the earlier check. Added a test to make sure.

https://github.com/llvm/llvm-project/pull/147731


More information about the llvm-commits mailing list