[PATCH] D158068: [DAG] FoldSetCC - add missing icmp(X,undef) -> isTrueWhenEqual case

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 16 04:29:26 PDT 2023


arsenm added inline comments.


================
Comment at: llvm/test/CodeGen/PowerPC/p10-spill-crgt.ll:423
   %tmp12 = icmp eq i32 %tmp11, 512
   switch i32 undef, label %bb13 [
     i32 117, label %bb62
----------------
RKSimon wrote:
> nikic wrote:
> > Don't switch on undef...
> @amyk This is the original test case from D87705 - can you recall the background to why these tests use switch on undef?
I’m sure most are because it’s what bugpoint does 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D158068



More information about the llvm-commits mailing list