zhijian lin

Results comments of zhijian lin

the bug is revealed by the commit 5322415f92fe44a9dac29c95da5ed434efbbba7e In the commit , it change ``` if (((Opcode == ISD::ADD) || (Opcode == ISD::OR)) && (isIntS34Immediate(N.getOperand(1), Imm34))) { // N is...

=== test ``` Initial selection DAG: %bb.0 'test:entry' SelectionDAG has 26 nodes: t1: i32 = GlobalAddress 0 t2: i8 = undef t3: i8 = Constant t9: i32 = Register $r1...

the PR https://github.com/llvm/llvm-project/pull/122741 will fix the issue.

crash on mtriple = powerpc64le-unknown-linux-gnu but not crash on powerpc64-ibm-aix7.2.0.0 and not crash 'powerpc-ibm-aix7.2.0.0` , it looks linux only crash.

the crash also happened with `-mtriple powerpc64-ibm-aix7.2.0.0` and `-mtriple powerpc-ibm-aix7.2.0.0`

1. I compiled , linked with -O1 and -O0 on target powerpc-ibm-aix7.2.0.0, and run both return "checksum = 1" bash> clang -O1 172694.cpp -o 172694-o1 -target powerpc-ibm-aix7.2.0.0 bash> clang -O0...

it also crash with -mtriple=powerpc64le-unknown-linux-gnu , but not crash -mtriple=powerpcle-unknown-linux-gnu and -mtriple=powerpc64-ibm-aix

the crash is introduced by patch [[PowerPC] fixed issue "Failure to optimize (x == 0) ? 0xFF : 0 to addic+subfe instead of cntlzw+srwi+neg"](https://github.com/llvm/llvm-project/pull/190606/changes#top)

I closed the patch, the patch. https://github.com/llvm/llvm-project/pull/207721 already fix the issue in another way