llvm-project/llvm/lib/Transforms
Sanjay Patel ea56dcb730 [InstCombine] fix miscompile from dropRedundantMaskingOfLeftShiftInput()
The test is from https://llvm.org/PR51351.

There are 2 related logic bugs from over-generalizing "lshr" to "any shr",
but I'm not sure how to expose the difference for "MaskC" because instsimplify
already folds ashr of -1.

I'll extend instsimplify to catch the MaskD pattern as a follow-up, but this
patch should be enough to avoid the miscompile.
2021-09-29 11:43:18 -04:00
..
AggressiveInstCombine [AggressiveInstCombine] Add `{insert/extract}element` to `TruncInstCombine` DAG 2021-09-16 11:24:31 +03:00
CFGuard llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Coroutines Pass some DataLayout arguments by const-ref 2021-09-23 15:50:31 +01:00
Hello
IPO [ThinLTO] Add noRecurse and noUnwind thinlink function attribute propagation 2021-09-27 12:28:07 -07:00
InstCombine [InstCombine] fix miscompile from dropRedundantMaskingOfLeftShiftInput() 2021-09-29 11:43:18 -04:00
Instrumentation [AIX] Change the linkage of profiling counter/data to be private 2021-09-29 00:47:25 +00:00
ObjCARC [Transforms] Use make_early_inc_range (NFC) 2021-09-15 19:55:24 -07:00
Scalar [IndVarSimplify] Forget phi value after changing incoming value. 2021-09-29 14:44:13 +01:00
Utils NFC: [Debugify] Fix a typo when checking variables in the original mode 2021-09-29 04:35:10 -07:00
Vectorize [SLP]Improve vectorization of phi nodes by trying wider vectors. 2021-09-28 07:20:36 -07:00
CMakeLists.txt [NewPM][HelloWorld] Move HelloWorld to Utils 2021-02-03 12:59:40 -08:00